PrimaryXAxis Labels

Hello

I try to use the "Labels" property for my X axis, but I can't do it.

I have these points for example :
(0, 10)
(1, 20)
(2, 30)

I do :

Me.Graph.PrimaryXAxis.Labels.Clear()
label = New ChartAxisLabel("toto")
Me.Graph.PrimaryXAxis.Labels.Add(label)
label = New ChartAxisLabel("tata")
Me.Graph.PrimaryXAxis.Labels.Add(label)
label = New ChartAxisLabel("tutu")
Me.Graph.PrimaryXAxis.Labels.Add(label)

and it doesn't work, I get "0", "1", "2" on my axis. Any idea ?

Thanks for your help.

2 Replies

LU Lucie December 19, 2006 10:55 AM UTC

Sorry, I've found : I've to set the "ValueType" property with "ChartValueType.Custom".


AD Administrator Syncfusion Team December 19, 2006 03:11 PM UTC

Hi Lucie,

We are glad to hear that the issue is resolved by you.

Please open new forums if you have any further questions.

Thanks for choosing Syncfusion products.

Best Regards,
Sureshbabu

Loader.
Up arrow icon