I followed the example regarding DateTime-support on the help site. I more or less copied the code but still I got a real strange behavior that can be seen on attached image (sorry for attaching one directly from Word but it seems it's not possible to delete attached items).
The first picture shows a continuous trendline for five (different) days but the graph places two points on the same day. At first I thought that the "oldest" data point was not showing correctly but after a more thorough look I realized that it's actually all data points except the first that is placed incorrectly.
The second picture shows the result after I changed a date. Some items are now shown on the correct place while some are placed way off.
Am I missing something obvious?
Here's the chart setup:
The first picture shows a continuous trendline for five (different) days but the graph places two points on the same day. At first I thought that the "oldest" data point was not showing correctly but after a more thorough look I realized that it's actually all data points except the first that is placed incorrectly.
The second picture shows the result after I changed a date. Some items are now shown on the correct place while some are placed way off.
Am I missing something obvious?
Here's the chart setup:
SeriesMapping seriesMapping =
new
SeriesMapping();<br>
seriesMapping.LegendLabel =
"MSFT"
;<br>
seriesMapping.SeriesDefinition =
new
LineSeriesDefinition();<br>
seriesMapping.ItemMappings.Add(
new
ItemMapping(
"DateTime"
, DataPointMember.XValue));<br>
seriesMapping.ItemMappings.Add(
new
ItemMapping(
"Value"
, DataPointMember.YValue));<br>
chart.SeriesMappings.Add(seriesMapping);<br>
chart.DefaultView.ChartArea.AxisX.DefaultLabelFormat =
"dd-MMM-yyyy"
;<br>
chart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 45;