Background color of Legend


#1

Hi,

Is it possible to change the legend’s background color ?

I try chart.legend.backgroundColor = [UIColor redColor] but nothing change and it still white.

Thanks.


#2

Look at the areaColor property on the legend’s style:

chart.legend.style.areaColor = myColor;

Thanks,
Jan


#3

Hi Jan,

Yes it works, my legend is now red!

Thank you.


#4

Glad I could help!