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

I’ve found another (and very simple) solution:

You can set y-axis minRange property:

yAxis: {
    ...
    minRange : 0.1
}

This makes Highcharts render yAxis min and max values when all data is 0.

UPDATE:

Highcharts 4.1.9 fix also needs:

        plotOptions: {
            line: {
                softThreshold: false
            }
        }

updated js fiddle

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)