🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

How to integrate Flexmonster with React and Highcharts?

Courtney Chow asked on October 15, 2019

The example in docs only shows how to do either one of them, but not both.
When I use the `ref.current!.flexmonster().highcharts!.getData` in a Flexmonster + React project, the error says `Cannot read property ‘getData’ of undefined` but I alreay include <script src=”flexmonster/lib/flexmonster.highcharts.js”></script>. (However, Flexmonster itself is included using npm).
What shall I do?

1 answer

Vera Didenko Vera Didenko Flexmonster October 17, 2019

Hello, Courtney,
Thank you for writing to us.
Actually, we have a demo using React and FusionCharts, another third-party chart library: https://codepen.io/ronika/pen/ZNaBxv/
Although it is not using Highcharts, the integration with Flexmonster and usage in React idea should be the same.
Please let us know if this helps.
Best Regards,

Please login or Register to Submit Answer