2015-09-25 115 views
1

我使用highchart.js文件製作一個高圖表。我需要刪除顯示在中心的黑洞或黑點。 http://jsfiddle.net/kbvC3/837/ 這裏是我的代碼如何從圓圈中去除黑色?

[![{ 

      chart: { 
       renderTo: 'container', 
        type: 'gauge', 
        backgroundColor: 'transparent', 
        plotBackgroundColor: null, 
        plotBackgroundImage: null, 
        plotBorderWidth: 0, 
        plotShadow: false, 
        height:240, 
        width:290 
      }, 
      credits: { 
       enabled: false 
      }, 

      title: { 
       text: '' 
      }, 

      pane: { 
       center: \['50%', '75%'\], 
        size: '100%', 
        startAngle: -120, 
        endAngle: 120, 
        background: \[{ 
        borderWidth: 0, 
        backgroundColor: 'transparent' 
       }\], 
      },][1]][1] 

[![請輸入代碼在這裏] [1] [1]`

你能告訴我如何刪除此點?

回答

0

那東西被稱爲支點。

所以你可以使用像這樣的選擇:

pivot: { 
    radius: 10, 
    borderWidth: 1, 
    borderColor: 'transparent', 
    backgroundColor: 'transparent' 
} 

看到這個的jsfiddle一個可行的解決方案

http://jsfiddle.net/kbvC3/838/

編輯只把radius: 0實際上是足以讓它消失了。