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

前端 未结 6 1869
慢半拍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:08

    A cleaner solution is to use the pointPlacement reference provided in the Highchart API.

    Add pointPlacement: 'on' and you should be in business. (For reference, here is their example JSFiddle)

提交回复
热议问题