We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Chart Symbol Borders - version 6.402.0.15

Thread ID:

Created:

Updated:

Platform:

Replies:

78687 Dec 23,2008 08:20 AM Dec 26,2008 01:42 AM Windows Forms 4
loading
Tags: Chart
Tareq Khan
Asked On December 23, 2008 08:20 AM

Hi

I would be grateful if someone could point me in the right direction for setting the border color, width etc for the Symbol being used for a particular series. I can set the fill color.

Many thanks

Tareq


Manohari [Syncfusion]
Replied On December 24, 2008 02:16 AM

Hi Tareq,

Thanks for your interest in Syncfusion products.

It is possible to customize the ChartSymbol shape by using the ChartBorder Class as illustrated below.

Example:

// Set the Size of the symbol
ser.Style.Symbol.Size = new Size(8, 8);

// Set the shape of the symbol
ser.Style.Symbol.Shape = ChartSymbolShape.Square;

// Set border Sytle.ChartBorderWeight can be used to set the width of the symbol border.
ChartBorder cBorder1 = new ChartBorder(ChartBorderStyle.Solid, Color.Red, ChartBorderWeight.Medium);

ser.Style.ElementBorders.All = cBorder1;
ser.Style.Symbol.Color = Color.Blue;

Note: Possible value for ChartBorderWeight are
ChartBorderWeight.Thin
ChartBorderWeight.Medium
ChartBorderWeight.Thick

I have attached a sample that illustrates the same in this link below.

http://websamples.syncfusion.com/samples/Chart.Windows/F78687/Sample1.htm

Please let us know if this meets your requirement.

Regards,
Manohari.R



Manohari [Syncfusion]
Replied On December 24, 2008 02:44 AM

Hi Tareq,

We are glad to inform you that a new Border property has also been implemented for setting the border properties in later versions and this property is available in our Development build version 7.1.0.5 and above.

You can download version 7.1.0.5 and later from the following link.

http://www.syncfusion.com/downloads/product/build.aspx

If your Essential Studio license is current, you will be able to obtain the key to install this version from your account in DirectTrac. Otherwise, please contact your Syncfusion Sales Representative or e-mail salessupport@syncfusion.com. Please let us know if you face any problem with this version.

Please refer to the sample code that illustrates the usage of this property below.

ser.Style.Symbol.Border.Color = Color.Green;/ Set color of the symbol border
ser.Style.Symbol.Border.Width = 2; // Set border width

I have also attached the sample that illustrates the same in this link below.

http://websamples.syncfusion.com/samples/Chart.Windows/F78687/Sample2.htm

Please let me know if this helps in resolving your problem. Thanks for your patience.

Regards,
Manohari.R


Tareq Khan
Replied On December 24, 2008 05:53 AM

Thanks very much for your help.

Incidentally, we recently purchased a bunch of enterprise developer licences, and the download link sent to us was for the version mentioned in the subject of this post. Should we be using the later version 7.XXX?

Thanks again for all your help. Have a good holiday.


Manohari [Syncfusion]
Replied On December 26, 2008 01:42 AM

Hi Tareq,

Thanks for the update.

If this solution using ElementBorders property and ChartBorder object as given below satisfies your requirements, the current version 6.4.0.15 can be used.

ChartBorder cBorder1 = new ChartBorder(ChartBorderStyle.Solid, Color.Red, ChartBorderWeight.Medium);
ser.Style.ElementBorders.All = cBorder1;

ChartBorder object will allow only pre-defined width options for setting the Border width using one of the following

ChartBorderWeight.Thin
ChartBorderWeight.Medium
ChartBorderWeight.Thick

Note: ElementsBorder property has been marked as obsolete since this new property 'ChartSeries.Style.Symbol.Border' has been implemented to achieve the same behavior in the latest.

However, if you wish to use the new feature ( ChartSeries.Style.Symbol.Border ) which allows customizing Border.Width to any value, you can upgrade to the latest version 7.1.0.5 and later.

For more information on the new features/changes available in the later versions please refer to the release notes links in the following page.

http://www.syncfusion.com/downloads/product/build.aspx

Kindly let us know if you need any other information. Thanks for your patience.

Regards,
Manohari.R


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;