Welcome to the Highcharts Stock JS (highstock) 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.

plotOptions.dumbbell

The dumbbell series is a cartesian series with higher and lower values for each point along an X axis, connected with a line between the values.

Requires highcharts-more.js and modules/dumbbell.js.

Configuration options for the series are given in three levels:

  1. Options for all series in a chart are defined in the plotOptions.series object.
  2. Options for all dumbbell series are defined in plotOptions.dumbbell.
  3. Options for one single series are given in the series instance array.
Highcharts.chart('container', {
    plotOptions: {
        series: {
            // general options for all series
        },
        dumbbell: {
            // shared options for all dumbbell series
        }
    },
    series: [{
        // specific options for this series instance
        type: 'dumbbell'
    }]
});

TypeScript:

  • the type option must always be set.
  • when accessing an array of series, the combined set of all series types is represented by Highcharts.SeriesOptionsType . Narrowing down to the specific type can be done by checking the type property.
if (chart.options.series?.[0]?.type === dumbbell) {
    // code specific to the dumbbell series
}