Dónal
Dónal

Reputation: 187399

y-axes of Highcharts line chart

If I create a line chart with Highcharts and set the minimum value of the y-axes to the smallest value in my data series (0 in the example below), then the points along the y-axes (circled below) are not connected. Is there a way to connect them.

enter image description here

Upvotes: 1

Views: 127

Answers (2)

Paweł Fus
Paweł Fus

Reputation: 45079

This is known Highcharts bug: https://github.com/highslide-software/highcharts.com/issues/1687

As suggested, you can set lineWidth: 0 for xAxis.

Upvotes: 1

Maurizio In denmark
Maurizio In denmark

Reputation: 4284

A solution is to put the min value to something below zero like this:

yAxis: {
    min: -0.1   
}

so you will now see the values that are at 0.

And set startOnTick to false

Upvotes: 1

Related Questions