This question is locked. New answers and comments are not allowed.
hi, i am try to show a chart with two SeriesMappings, but only one is showed.
this is is xaml
and this is the c# code
where am I doing wrong?
this is is xaml
<telerik:RadChart x:Name="RadChart"> <telerik:RadChart.SeriesMappings> <telerik:SeriesMapping LegendLabel="Domain Number"> <telerik:SeriesMapping.GroupingSettings> <telerik:GroupingSettings /> </telerik:SeriesMapping.GroupingSettings> <telerik:SeriesMapping.SeriesDefinition> <telerik:StackedBarSeriesDefinition /> </telerik:SeriesMapping.SeriesDefinition> <telerik:ItemMapping DataPointMember="XCategory" FieldName="ItemName" /> <telerik:ItemMapping DataPointMember="YValue" FieldName="ItemsCount" /> </telerik:SeriesMapping> <telerik:SeriesMapping LegendLabel="Total Domain Available"> <telerik:SeriesMapping.GroupingSettings> <telerik:GroupingSettings /> </telerik:SeriesMapping.GroupingSettings> <telerik:SeriesMapping.SeriesDefinition> <telerik:StackedBarSeriesDefinition /> </telerik:SeriesMapping.SeriesDefinition> <telerik:ItemMapping DataPointMember="XCategory" FieldName="ItemName" /> <telerik:ItemMapping DataPointMember="YValue" FieldName="ItemsCount2" /> </telerik:SeriesMapping> </telerik:RadChart.SeriesMappings> </telerik:RadChart>and this is the c# code
public void InitializeMailServiceRadChart(List<ChartItem2Val> values) { this.RadChart.DefaultSeriesDefinition.ShowItemToolTips = true; this.RadChart.ItemsSource = values;}ChartItem2Val structure:public class ChartItem2Val { public int ItemsCount { get; set; } public string ItemName { get; set; } public int ItemsCount2 { get; set; } public string ItemName2 { get; set; } public ChartItem2Val() { } public ChartItem2Val(string itmName,int itmCount,string itmName2,int itmCount2) { ItemName = itmName; ItemsCount = itmCount; ItemName2 = itmName2; ItemsCount2 = itmCount2; } }where am I doing wrong?