[英]JS Google Charts can't change pie background color
I tried this code, but my pie bg color is still blue.. could you advise something? 我尝试了这段代码,但是我的饼状bg颜色仍然是蓝色。
var options = {
chart: {
backgroundColor: 'brown', // for the area outside the chartArea
chartArea: {
backgroundColor: 'green'
}
}
};
chartArea
is not a valid key... Just use backgroundColor
. chartArea
不是有效的键...只需使用backgroundColor
。
var options = {
backgroundColor: 'brown',
chartArea: {
backgroundColor: 'green'
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.