This question is locked. New answers and comments are not allowed.
How can I get the gray lines that divide the pie slices to be black?
Also, how can I get the spider lines to be the same colors as the pie slice? I am using the chart.CreateItemStyleDelegate function like this:
Also, how can I get the spider lines to be the same colors as the pie slice? I am using the chart.CreateItemStyleDelegate function like this:
private
Style BuildCustomItemStyle(Control item, Style style, DataPoint point, DataSeries dataSeries)
{
if
((item
as
BaseChartItem) ==
null
)
return
style;
Style newStyle =
new
Style();
newStyle.BasedOn = style;
newStyle.TargetType =
typeof
(Shape);
Brush brush;
switch
((item
as
BaseChartItem).CurrentIndex % 7)
{
case
0:
brush =
new
SolidColorBrush(Color.FromArgb(255, 2, 123, 8));
break
;
case
1:
brush =
new
SolidColorBrush(Color.FromArgb(255, 238, 192, 5));
break
;
case
2:
brush =
new
SolidColorBrush(Color.FromArgb(255, 238, 97, 6));
break
;
case
3:
brush =
new
SolidColorBrush(Color.FromArgb(255, 1, 240, 6));
break
;
case
4:
brush =
new
SolidColorBrush(Color.FromArgb(255, 238, 240, 6));
break
;
case
5:
brush =
new
SolidColorBrush(Color.FromArgb(255, 179, 181, 183));
break
;
default
:
//case 6:
brush =
new
SolidColorBrush(Color.FromArgb(255, 237, 240, 242));
break
;
}
newStyle.Setters.Add(
new
Setter(Shape.FillProperty, brush));
return
newStyle;
}