Hi All,
Using a line chart, I have a series of dates (as DateTime) on my X axis. Instead of getting the dates I get 1 to 26 which is the number of data points in the series.
I tried formatting the labels with dataChart.Axes[0].Label.Format = "{0:d}"; and in the xmal but with no affect. If I convert the DateTime to a String I get 06/06/2010 9:30 PM.
Any suggestions?
Cheers
Phil
Hi Phil,
I have been looking into your issue and I think that the formatting is not what is causing this. If your FormatString doesn't apply correctly you won't get labels at all or a format-string-related labels like "d" "mm/dd/yy", etc. The number in the data point in the series is applied when you don't provide a Label of your own so I guess you haven't mapped the Label property or forgot to assign the datapoints' labels explicitly if you are using a static collection.
Here is a link from our online documentation for DataMapping: http://help.infragistics.com/NetAdvantage/Silverlight/2010.1/CLR3.5/?page=SL_xamWebChart_Binding_xamWebChart_to_Data.html
and one for assigning Labels explicitly: http://help.infragistics.com/NetAdvantage/Silverlight/2010.1/CLR3.5/?page=SL_xamWebChart_Axis_Labels.html
Hope this helps.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support