changing the labels of the x-axis of a chart

Hie,
i would like to know if it's possible, and if so, how can i change the labels of the x-axis of a chart ?
I've added a screenshot of what i'm talking about...

Thanks.



x_axis_302e4814.zip

1 Reply

GM Geetha M Syncfusion Team April 9, 2010 04:56 AM UTC

Hi Iulian,

Thank you for your interest in Syncfusion products.

You can change the labels of x-axis using the code given below.

chart.PrimaryCategoryAxis.EnteredDirectlyCategoryLabels = new object[] { "Value 1", "Value 2", "Value 3" };

Please try this and let me know if you have any questions.

Regards,
Geetha

Loader.
Up arrow icon