2016-12-05 123 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 
} 

小提琴: