This question is locked. New answers and comments are not allowed.
Hello,
I am having problems with refreshing Visual state of the Pie Chart.
When I set two values for Pie Chart, I still have the same look, no matter what values I enter from the C# code.
I can only change visual state by changing values from XAML.
My question is, how can I change the visual state by C# code? For example I have green and silver colors for values, and if my First value is 8, and second is 0, Pie Chart should be filled all by green color.
Default values are:
I am changing values from C# code like this:
I am having problems with refreshing Visual state of the Pie Chart.
When I set two values for Pie Chart, I still have the same look, no matter what values I enter from the C# code.
I can only change visual state by changing values from XAML.
My question is, how can I change the visual state by C# code? For example I have green and silver colors for values, and if my First value is 8, and second is 0, Pie Chart should be filled all by green color.
Default values are:
<telerikCharting:PieDataPoint Value="50"/><telerikCharting:PieDataPoint Value="50"/>I am changing values from C# code like this:
PieSeries pieSeries = new PieSeries();pieSeries.DataPoints.Insert(0, new PieDataPoint() { Value = value1});pieSeries.DataPoints.Insert(1, new PieDataPoint() { Value = value2}); radPieChart3.Series.Add(pieSeries);