Hi guys!
I'm trying to format the label displayed on my chart (DateTime value), but somehow the component is ignoring my configuration. I'd like to know if there's any flag the we need to set on or off to do the component consider our custom formatting?
Here's an exemple of my code:
ultraChart.LineChart.TreatDateTimeAsString = false;ultraChart.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.Auto;ultraChart.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:dd/MM/yy>";
Even with that configuration my date it's been shown like JUL/23/2012 instead of 23/07/12.
What did I miss?
Regards
Hi,
Did you try to set ItemFormt property to custom ?
ultraChart1.Axis.X.Labels.ItemFormat = Infragistics.UltraChart.Shared.Styles.AxisItemLabelFormat.Custom;
ultraChart1.Axis.X.Labels.ItemFormatString ="<ITEM_LABEL:dd/MM/yy>";
Please try this suggestion and let me know what is the result. If you have any questions, feel free to ask me
I've tried that too without success.
Even doing like the following code, I'm not able to set the date format properly.
ultraChart.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.None;
// or ultraChart.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.Auto;
ultraChart.Axis.X.Labels.ItemFormat = AxisItemLabelFormat.Custom;
ultraChart.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:dd/MM/yy>";
ultraChart.Axis.X.RangeType = AxisRangeType.Custom;
For sure I'm missing something.
Regards.