Hello,
I'm using pie chart and I wanna change the color of each slice according to some data related to slice.
The color will be calculated from a formula.
how can I change the color of slices through C# code at run-time ?
how can I do something like this pseudo :
I hope it's clear enough
thanks in advance :-)
I'm using pie chart and I wanna change the color of each slice according to some data related to slice.
The color will be calculated from a formula.
how can I change the color of slices through C# code at run-time ?
how can I do something like this pseudo :
pieChart.Slice[0].Fill = Claculate_The_Color_From_Data_Of_Slice();
pieChart.Slice[1].Fill = Claculate_The_Color_From_Data_Of_Slice();
pieChart.Slice[2].Fill = Claculate_The_Color_From_Data_Of_Slice();
pieChart.Slice[3].Fill = Colors.Red
I hope it's clear enough
thanks in advance :-)