I'm trying to use Highcharts with my web application, which is written in React. Highcharts is rendered via a div tag.
I'm rendering everything on my page (i.e. the panels, input fields, buttons, tables, dropdowns, etc) from my JSX file. When I try to stick a div tag into my JSX with an id or class to link it to the Highcharts JavaScript, I get an error message in my console (Highcharts error #13) that the rendering div is not found.
render() {
return ( <div>
<div id="container"></div>
</div>
);
}
}
However, when I stick a div tag into my HTML with an id or class linking it to my Highcharts JavaScript, I can get the chart to show up on the page, but I want it inside my JSX so I can place it inside the panels, containers, etc I have in my JSX.