How to add charts to a React.js app without using a totally different coding style?

Ad

Is there a charting library that jives with how React.js asks you to do things? It seems like the chart should be a component.

D3.js seems to be the most powerful charting library out there, but it requires a lot of direct DOM work, which is the exact opposite of React.

Would there be a way to get those two libraries to play nice with each other? If not, is there an alternative to D3 that does work well with React?

Ad

Answer

Ad

Checkout high charts react library. https://github.com/kirjs/react-highcharts

Ad
source: stackoverflow.com
Ad