2016-12-05 32 views
0

我试图删除一个简单的条形图上的白色背景。如何在简单的条形图上移除白色背景?

我已经试过

  • 的backgroundColor:空
  • 的backgroundColor: 'RGBA(255,255,255,0)'

没有人可以设置背景颜色。有任何想法吗? 的jsfiddle例如here

 $('#container').highcharts({ 
    credits: { 
    enabled: false 
    }, 
    backgroundColor: null, 

回答

2

您正在尝试使用设置在根对象级别chart对象。

将它们变成chart,和你所有的设置:

chart: { 
    type: 'bar', 
    spacing: [0, 0, 0, 0], 
    backgroundColor: null 
} 

小提琴: