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

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

    You need the following settings.

    xAxis: {           
      plotLines: [{
        value: 0, 
        color: '#color'
      }],
      tickmarkPlacement: 'on'
    },
    yAxis: {           
      lineWidth: 0,
    }
    

提交回复
热议问题