This question is locked. New answers and comments are not allowed.
I am trying to update the AxisX Labels on the fly.
For instance:
| _________________
Jan 1 Feb 2 Mar 6
But I want the dates to come back using Arabic digits.
|___________________
Jan ١ Feb ٢ Mar ٥
I can accomplish this for numeric axis in the LayoutUpdated event by....
However, if I attempt this on Date/Time fields, the TickPoint.Value is just a generated number, and the label is empty.
So... Summary:
Is there a way to override the datetime converter, or implement an ivalueconverter on the Axis Labels.
Thanks,
Ben
For instance:
| _________________
Jan 1 Feb 2 Mar 6
But I want the dates to come back using Arabic digits.
|___________________
Jan ١ Feb ٢ Mar ٥
I can accomplish this for numeric axis in the LayoutUpdated event by....
RadChart x = (RadChart)LayoutRoot.Children[0];
foreach
(TickPoint tp
in
x.DefaultView.ChartArea.AxisY.TickPoints) {
tp.Label = LocalizeNumberString(tp.Value.ToString());
//This works for numbers only
}
However, if I attempt this on Date/Time fields, the TickPoint.Value is just a generated number, and the label is empty.
So... Summary:
Is there a way to override the datetime converter, or implement an ivalueconverter on the Axis Labels.
Thanks,
Ben