2015-09-25 116 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实际上是足以让它消失了。