This question is locked. New answers and comments are not allowed.
Hi there,
I'm facing three issues as, (as MVVM, I'm not using CodeBehind)
I've single row result set, which query back from Domain Service. How do i bind that 1 row data into PieChart (I want to show Column name as Legend)?
Another question is, How can I show % information beside Legend name? (eg, First Test 20.00% in ledgent area)
Last question is, How can I bind that % information into Textbox beside Legend.
Here is my Code (but not working)
and I don't know how to show % beside Legend and how to put TestBox for That % information at Legend Area.
Please advise and I'm uploading sketch images.
Thanks.
I'm facing three issues as, (as MVVM, I'm not using CodeBehind)
I've single row result set, which query back from Domain Service. How do i bind that 1 row data into PieChart (I want to show Column name as Legend)?
Another question is, How can I show % information beside Legend name? (eg, First Test 20.00% in ledgent area)
Last question is, How can I bind that % information into Textbox beside Legend.
Here is my Code (but not working)
<telerik:RadChart ItemsSource="{Binding Path=TestResultDataSets}" Name="PieTestResult"> <telerik:RadChart.SeriesMappings> <telerik:SeriesMapping> <telerik:SeriesMapping.SeriesDefinition> <telerik:SeriesMapping> <telerik:SeriesMapping.SeriesDefinition> <telerik:PieSeriesDefinition ShowItemToolTips="True" ItemLabelFormat="#%{p}" ItemToolTipFormat="#LEGENDLABEL - #%{P}" LegendItemLabelFormat="#%{p}"> <telerik:PieSeriesDefinition.InteractivitySettings> <telerik:InteractivitySettings HoverScope="Item" /> </telerik:PieSeriesDefinition.InteractivitySettings> <telerik:PieSeriesDefinition.LabelSettings> <telerik:RadialLabelSettings ShowConnectors="True" SpiderModeEnabled="True" Distance="20" /> </telerik:PieSeriesDefinition.LabelSettings> </telerik:PieSeriesDefinition> </telerik:SeriesMapping.SeriesDefinition> <telerik:SeriesMapping.ItemMappings> <telerik:ItemMapping DataPointMember="FirstTest" FieldName="FirstTest"></telerik:ItemMapping> <telerik:ItemMapping DataPointMember="SecondTest" FieldName="SecondTest"></telerik:ItemMapping> <telerik:ItemMapping DataPointMember="ThirdTest" FieldName="ThirdTest"></telerik:ItemMapping> <telerik:ItemMapping DataPointMember="FourthTest" FieldName="FourthTest"></telerik:ItemMapping> </telerik:SeriesMapping.ItemMappings> </telerik:SeriesMapping> </telerik:RadChart.SeriesMappings> </telerik:RadChart>and I don't know how to show % beside Legend and how to put TestBox for That % information at Legend Area.
Please advise and I'm uploading sketch images.
Thanks.