Hello all,
I need some help getting multiple Y axis to work. I can get other graphs to work, but as soon as I go to multiple Y axis I get nothin.
In my xaml I have this -->
...
TMbyDate works with itemmapping Actual or Goal for single Y axis so I dont think it is my data.
Any ideas? By copying and pasting and then changing 3 variables I hope I have ruled out typos.
Is there more that the online help isn't telling? What am I missing?
Also, how come this example doesn't tell me when to put in the DataPointMember.XValue?
Thanks
Travis
I need some help getting multiple Y axis to work. I can get other graphs to work, but as soon as I go to multiple Y axis I get nothin.
In my xaml I have this -->
<telerikChart:RadChart x:Name="radChart" />
In my code behind I have this --> (Which is copied from the online help files, the only changes are in bold)
radChart.DefaultView.ChartArea.AxisY.Title = "Megawatt [MW]";
AxisY axisY = new AxisY();
axisY.AxisName = "AxisY_South";
axisY.Title = "Kilowatt [kW]";
radChart.DefaultView.ChartArea.AdditionalYAxes.Add( axisY );
//Series mapping for the collection with index 0
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 0;
seriesMapping.LegendLabel = "North [MW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Actual", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
//Series mapping for the collection with index 1
seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 1;
seriesMapping.LegendLabel = "South [kW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.AxisName = "AxisY_South";
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Goal", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
radChart.ItemsSource = TMbyDate;
TMbyDate works with itemmapping Actual or Goal for single Y axis so I dont think it is my data.
Any ideas? By copying and pasting and then changing 3 variables I hope I have ruled out typos.
Is there more that the online help isn't telling? What am I missing?
Also, how come this example doesn't tell me when to put in the DataPointMember.XValue?
Thanks
Travis