Highcharts: Ensure y-Axis 0 value is at chart bottom

后端 未结 8 1807
名媛妹妹
名媛妹妹 2021-02-05 02:18

I\'m outputting a series of highcharts on a page. In some instances, all data for the specified time period may come back with 0 values.

In such a case, the chart looks

8条回答
  •  遥遥无期
    2021-02-05 02:56

    Only way I could get it to show it "correctly" was by also providing an yAxis max value. I think this is a HighCharts issue when you provide no data elements with a y-value. It draws the best chart it thinks it can.

提交回复
热议问题