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.

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.

一种解决方案是将最小值设置为低于零的值,如下所示:
yAxis: {
min: -0.1
}
所以您现在将看到为 0 的值。
并将 startOnTick 设置为 false
这是已知的 Highcharts 错误:https ://github.com/highslide-software/highcharts.com/issues/1687
按照建议,您可以为 xAxis 设置 lineWidth: 0。