【问题标题】:JS Google Charts can't change pie background colorJS Google Charts 无法更改饼图背景颜色
【发布时间】:2017-06-19 09:47:03
【问题描述】:

我尝试了这段代码,但我的饼底颜色仍然是蓝色..你能给点建议吗?

  var options = {

  chart: {
  backgroundColor: 'brown', // for the area outside the chartArea
  chartArea: {
  backgroundColor: 'green'
}
  }

};

【问题讨论】:

    标签: javascript charts google-visualization


    【解决方案1】:

    chartArea 不是有效密钥...只需使用 backgroundColor

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-08
      • 2012-10-25
      • 1970-01-01
      • 2017-12-16
      • 1970-01-01
      • 2013-03-14
      • 2016-10-04
      • 2014-09-25
      相关资源
      最近更新 更多