Welcome to the Highcharts Gantt JS (gantt) Options Reference

These pages outline the chart configuration options, and the methods and properties of Highcharts objects.

Feel free to search this API through the search bar or the navigation tree in the sidebar.

yAxis.plotLines

An array of lines stretching across the plot area, marking a specific value on one of the axes.

In styled mode, the plot lines are styled by the .highcharts-plot-line class in addition to the className option.

When doing Chart.update() or Axis.update(), the plot lines are updated by index or id. The following merging rules apply:

  • If plotLines are not defined in the new options, all existing plot lines are kept.
  • If plotLines are defined without ids, the existing plot lines are updated by index. If the new array has fewer plot lines, the remaining existing plot lines are removed. If the new array has more plot lines, the extra ones are added. An empty array removes all existing plot lines.
  • If plotLines are defined with ids, the existing plot lines are matched by id, and remaining unmatched existing plot lines are removed.