0
我试过这个代码,但我的饼图颜色仍然是蓝色..你能提供一些建议吗?JS谷歌图表不能改变馅饼背景颜色
var options = {
chart: {
backgroundColor: 'brown', // for the area outside the chartArea
chartArea: {
backgroundColor: 'green'
}
}
};
是的,你的代码改变div的bg颜色,但我需要改变图形(饼)的bg颜色。可能吗? –
@WEBSITEFREELANCE,你是说馅饼'切片'吗?如果是这样,那么是的:https://developers.google.com/chart/interactive/docs/customizing_charts。 – Catalyst
非常感谢 –