Skip to content

Debugging

Will Hawker edited this page Jul 21, 2017 · 1 revision

React JSX Highcharts provides a <Debug /> component to make debugging easier.

When this component is mounted, it assigns the Highcharts chart instance to the global scope, so you can inspect the object through developer tools.

Example

Adds chart instance to global variable chart

<Debug />

Adds chart instance to global variable myCustomVarName

<Debug varName="myCustomVarName" />