wpdatatables_filter_highstock_render_data

Contents

Description

This filter is used to modify the chart options of the HighCharts Stock chart before it is rendered.

Usage

add_filter( 'wpdatatables_filter_highstock_render_data', 'updateHighstockRenderData', 10, 3 );

Parameters

  • $highstock_render_data array
    The array of chart data, containing all of the current chart options, the wdtNumberFormat, wdtDecimalPlaces, and the chart type.
  • $chartID integer
    The ID of the chart.
  • $chart object
    The instance of the chart class.

Examples

// Callback function for the wpdatatables_filter_highstock_render_data filter hook
function updateHighstockRenderData ($highstock_render_data, $chartID, $chart){
    // Your code
    return $highstock_render_data;
}
add_filter( 'wpdatatables_filter_highstock_render_data', 'updateHighstockRenderData', 10, 3 );