Highcharts Solid Gauge Width

前端 未结 2 2014
暗喜
暗喜 2021-01-02 09:02

I\'ve not found an API or previous question that addresses changing the width of the solid gauge data plot.

I can easily change the chart width, plot width, plot pad

相关标签:
2条回答
  • 2021-01-02 09:41

    Try below code

    EDITED

    i have changed innerradius and outerradius

           background: {
                backgroundColor: '#fff',
                innerRadius: '60%',
                outerRadius: '100%',
                shape: 'arc',
                borderColor: 'transparent'
            }
    

    create chart with innerRadius same as outerRadius

    outerRadius is the background radius on which chart will shown and innerRadius is chart radius.

    Demo Edited Fiddle

    0 讨论(0)
  • 2021-01-02 09:52

    You can use innerRadius on yAxis.

    plotOptions: {
            solidgauge: {
                innerRadius: '75%',
                dataLabels: {
                    y: -45,
                    borderWidth: 0,
                    useHTML: true
                }
            }
     },
    

    http://jsfiddle.net/jm8E4/6/

    0 讨论(0)
提交回复
热议问题