2017-06-18 101 views

回答

0

chartArea不是有效的钥匙......只要使用backgroundColor

var options = { 
    backgroundColor: 'brown', 
    chartArea: { 
     backgroundColor: 'green' 
    } 
} 
+0

是的,你的代码改变div的bg颜色,但我需要改变图形(饼)的bg颜色。可能吗? –

+0

@WEBSITEFREELANCE,你是说馅饼'切片'吗?如果是这样,那么是的:https://developers.google.com/chart/interactive/docs/customizing_charts。 – Catalyst

+0

非常感谢 –