Hi,
I'm trying to create a 3D Dougnut Chart, but are having troubles with the Series Mapping. Using the code below, I get the legend to show color coded items equal to the amount of rows in the table. But nothing else displays.
I'm trying to create a 3D Dougnut Chart, but are having troubles with the Series Mapping. Using the code below, I get the legend to show color coded items equal to the amount of rows in the table. But nothing else displays.
Doughnut3DSeriesDefinition definition = new Doughnut3DSeriesDefinition(); | |
definition.LegendDisplayMode = LegendDisplayMode.DataPointLabel; | |
radChart1.DefaultSeriesDefinition = definition; | |
radChart1.DefaultView.ChartLegend.Header = "TEST DATA"; | |
SeriesMapping seriesMapping = new SeriesMapping(); | |
ItemMapping itemMapping = new ItemMapping(); | |
itemMapping.DataPointMember = DataPointMember.YValue; | |
itemMapping.FieldName = "DoubleData"; | |
seriesMapping.ItemMappings.Add(itemMapping); | |
ItemMapping itemMapping2 = new ItemMapping(); | |
itemMapping2.DataPointMember = DataPointMember.Label; | |
itemMapping2.FieldName = "StringData"; | |
seriesMapping.ItemMappings.Add(itemMapping2); | |
radChart1.SeriesMappings.Add(seriesMapping); | |
DataTable tt = new DataTable(); | |
tt = GetDataTable(); | |
radChart1.ItemsSource = tt; | |
Any help would be much appreciated. Not really sure how the charting works.
Thanks,
Henry