Javascript JS谷歌图表可以';不要改变饼图的背景色
我尝试了这个代码,但是我的馅饼背景颜色仍然是蓝色。。你能给点建议吗Javascript JS谷歌图表可以';不要改变饼图的背景色,javascript,charts,google-visualization,Javascript,Charts,Google Visualization,我尝试了这个代码,但是我的馅饼背景颜色仍然是蓝色。。你能给点建议吗 var options = { chart: { backgroundColor: 'brown', // for the area outside the chartArea chartArea: { backgroundColor: 'green' } } }; chartArea不是有效的键。。。只需使用backgroundColor var options = { backgroun
var options = {
chart: {
backgroundColor: 'brown', // for the area outside the chartArea
chartArea: {
backgroundColor: 'green'
}
}
};
chartArea
不是有效的键。。。只需使用backgroundColor
var options = {
backgroundColor: 'brown',
chartArea: {
backgroundColor: 'green'
}
}
是的,您的代码更改了div的背景颜色,但我需要更改图形(饼图)的背景颜色。有可能吗?@WebsiteFreelor,你是说馅饼“切片”吗?如果是,那么是的。非常感谢much@WEBSITEFREELANCE,没问题。如果我的答案是有用的,请考虑把我的答案标记为已接受。谢谢