我试图使用谷歌图表工具提供的饼图。他们的文档指定了一组配置选项
https://google-developers.appspot.com/chart/interactive/docs/gallery/piechart#Configuration_Options
但我不知道在示例代码中如何或在何处指定它们?
答案 0 :(得分:0)
使用示例代码中给出的options变量完成配置。 要更改背景颜色,我替换了
var options = {'title':'Some Title',
'width':400,
'height':300};
由此
var options = {'title':'Some Title',
'width':400,
'height':300, 'backgroundColor':'#EEF4EE'};