hi team,
i need to develop a simple pie chart. but i have only below code in my Xaml. i need to create and control series from my viewmodel not in the code behind. And also i need to control the series colors, number of legends and legend colors from my viewmodel. if u guys give the sample code would be the great help.
The idea is i need to have only one template and use that control as common control.
need to show that more that one pie chart in the same page.
<telerik:RadChart x:Name="RadChart1" ItemsSource="{Binding Data}">
<telerik:RadChart.DefaultSeriesDefinition>
<telerik:PieSeriesDefinition>
</telerik:PieSeriesDefinition>
</telerik:RadChart.DefaultSeriesDefinition>
</telerik:RadChart>
i need to develop a simple pie chart. but i have only below code in my Xaml. i need to create and control series from my viewmodel not in the code behind. And also i need to control the series colors, number of legends and legend colors from my viewmodel. if u guys give the sample code would be the great help.
The idea is i need to have only one template and use that control as common control.
need to show that more that one pie chart in the same page.
<telerik:RadChart x:Name="RadChart1" ItemsSource="{Binding Data}">
<telerik:RadChart.DefaultSeriesDefinition>
<telerik:PieSeriesDefinition>
</telerik:PieSeriesDefinition>
</telerik:RadChart.DefaultSeriesDefinition>
</telerik:RadChart>