Google Chart API - Pie legend.textStyle color

Pierre de LESPINAY picture Pierre de LESPINAY · Feb 14, 2012 · Viewed 13.8k times · Source

Starting from the official example for pie chart.
I'm not able the change the legend color.

'legend.textStyle': { 'color': 'gray' }  

Is not taken into account.
Please check out the fiddle
Am I doing something wrong ?

Answer

Xaniff picture Xaniff · Jul 14, 2012

I wasn't actually able to get your answer to work either. Instead, I used the following:

legend: {textStyle: {color: 'gray'}}