javascript Google Chart API - Pie legend.textStyle 颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9280469/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 06:09:53 来源:igfitidea点击:
Google Chart API - Pie legend.textStyle color
提问by Pierre de LESPINAY
Starting from the official examplefor 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 ?
不考虑。
请查看小提琴
我做错了什么吗?
回答by Xaniff
I wasn't actually able to get your answer to work either. Instead, I used the following:
我实际上也无法得到你的答案。相反,我使用了以下内容:
legend: {textStyle: {color: 'gray'}}
回答by Pierre de LESPINAY
It is
它是
legend: {textStyle: {color: 'gray'}}
instead of
代替
'legend.textStyle': { 'color': 'gray' }