I'm trying to figure out how to use SeriesMapping from your various examples and I have come up with a strange error. My silverlight page, where this is taking place, is called "MyGame and some of the code is pasted below. I'm trying to limit the x axis to 18 but the the line that sets maxvalue causes a page not found in silverlight. If I remove the instruction the graph displays ok but shows a maxvalue of 20. How could setting this value cause the page not to be found.
Thanks,
Gary
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.LegendLabel =
"Fatigue Last 9 Games";
seriesMapping.SeriesDefinition =
new SplineSeriesDefinition();
seriesMapping.ChartArea.AxisX.MaxValue = 18; <-----------causes page not found error
seriesMapping.ItemMappings.Add(
new ItemMapping("Month", DataPointMember.XValue));
seriesMapping.ItemMappings.Add(
new ItemMapping("Quantity", DataPointMember.YValue));
FatigueChart.SeriesMappings.Add(seriesMapping);
FatigueChart.ItemsSource =
this.CreateData();