GridLines in chart.PlotArea

Hi all,

i'm exporting some values into a excel chart via the XlsIO Interface. I will change the grid design in the chart area for the excel chart. Could you please give me a tip which property i must use to change the design (chart.PlotArea)?

Thank's,
Stephan


4 Replies

SD Steffen Dunst May 30, 2008 09:44 AM UTC

Hi,
i have found the option to enable the Grid lines.

chart.PrimaryCategoryAxis.HasMajorGridLines = true;

But how can i change the color of these GridLines?

Stephan



YG Yavanaarasi G Syncfusion Team June 3, 2008 12:42 PM UTC

Hi Stephan,

Thank you for your interest in Syncfusion products.

How can i change the color of the GridLines?

You can change the color of the gridlines by using the IchartGridLine interface. Please refer the below code snippet:


[C#]
IChartGridLine gridLine = chart.PrimaryValueAxis.MajorGridLines;
gridLine.Border.LineColor = Color.Red;


Please let me know if you have any other concerns.

Regards,
G.Yavana



SD Steffen Dunst June 4, 2008 06:40 AM UTC

Thank you



YG Yavanaarasi G Syncfusion Team June 4, 2008 11:39 AM UTC

Hi Stephan,

Thank you for your update.

Please let me know if you have any other concerns.

Regards,
G.Yavana


Loader.
Up arrow icon