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.

series.roc

A ROC series. If the type option is not specified, it is inherited from chart.type.

Rate of change indicator (ROC). The indicator value for each point is defined as:

(C - Cn) / Cn * 100

where: C is the close value of the point of the same x in the linked series and Cn is the close value of the point n periods ago. n is set through period.

This series requires linkedTo option to be set.

In TypeScript the type option must always be set.

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 roc series are defined in plotOptions.roc.
  3. Options for one single series are given in the series instance array.
Highcharts.chart('container', {
    plotOptions: {
        series: {
            // general options for all series
        },
        roc: {
            // shared options for all roc series
        }
    },
    series: [{
        // specific options for this series instance
        type: 'roc'
    }]
});