2

有没有办法改变或摆脱 HighCharts 的 Gauge 图表中的灰色圆圈?

看看这个仪表请

$(function () {
  $('#container').highcharts({
    chart: {
        type: 'gauge',
        backgroundColor:'rgba(255, 255, 255, 0.1)',
        plotBorderWidth: 0,
        plotShadow: false
    },      
    title: {text: ''},      
    pane: {background: [{backgroundColor: 'transparent'}]},
    yAxis: {
        min: 0,
        max: 200,
        lineColor: 'transparent',
        minorTickColor: '#FF0000',

        tickColor: '#FF0000',
        labels: {
            step: 2,
            rotation: 'auto'
        },
    },  
    series: [{
        name: 'Speed',
        data: [80]
    }]      
  });
});

我找不到任何选项可以更改为灰色圆圈的颜色或选择不进行掠夺。

请有任何想法

4

1 回答 1

3

使用pane.background.borderWidth属性:http: //jsfiddle.net/xMjqp/2/

来自文档:http ://api.highcharts.com/highcharts#pane.background

于 2013-05-20T11:54:33.917 回答