This question is locked. New answers and comments are not allowed.
I customized the legend labels on a Pie Chart using the following code:
for (nuint i = 0; i < chart.Legend.Container.ItemCount; i++) {
TKChartLegendItem item = chart.Legend.Container.ItemAtIndex (i);
item.Label.TextColor = UIColor.White;
item.BackgroundColor = UIColor.Black;
}
Everything looks fine until I select one of the points. The TextColor of the label goes back to its original Black color. BackgroundColor remains black, only TextColor changed.
What I am missing?
Thanks
for (nuint i = 0; i < chart.Legend.Container.ItemCount; i++) {
TKChartLegendItem item = chart.Legend.Container.ItemAtIndex (i);
item.Label.TextColor = UIColor.White;
item.BackgroundColor = UIColor.Black;
}
Everything looks fine until I select one of the points. The TextColor of the label goes back to its original Black color. BackgroundColor remains black, only TextColor changed.
What I am missing?
Thanks