How to get Highcharts X-Axis Categories starting at the left most point

前端 未结 6 1822
慢半拍i
慢半拍i 2020-12-29 09:55

I have a Highcharts area chart, with string categories on the X-Axis. I want the chart to start at the left most edge of the x-axis and end at the rightmost edge, without an

6条回答
  •  被撕碎了的回忆
    2020-12-29 10:10

    You can use spacingLeft and spacingRight to set the spacing:

    chart: {
             renderTo: 'chart1',
             type: 'area',
             spacingLeft: -21,      
             spacingRight: -21,      
             spacingBottom: 1
    },
    

提交回复
热议问题