I am using HighchartsReact to render some pie charts and I need to add custom css to it.
Without react I used the id of the div to style <div id="something"></div>
But now in react I am using something like:
<HighchartsReact
highcharts={Highcharts}
options={options}
/>
How do I add a custom class to this?
I tried
<HighchartsReact
highcharts={Highcharts}
options={options}
className="test-class"
/>
But it did not work.
I referenced this doc: https://www.highcharts.com/blog/post/highcharts-wrapper-for-react-101/