experience-experiments / react-easy-chart

[DEPRECATED] - Easy to use React Charting library
http://experience-experiments.github.io/react-easy-chart
BSD 3-Clause "New" or "Revised" License
142 stars 55 forks source link

Not compatible with d3 v4. #92

Closed greygatch closed 6 years ago

greygatch commented 7 years ago

In v4, it looks like the color scaling methods have changed. I'd guess other methods have changed, too.

For example, d3.scale.category20() is no longer a thing. See v4 docs.

raytraina commented 7 years ago

Are there plans to support v4? Getting the Uncaught TypeError: Cannot read property 'category20' of undefined error at the moment. Planning to downgrade d3 in the meantime.

jstray commented 7 years ago

Same problem here.

greygatch commented 7 years ago

I've begun to update the code here:

https://github.com/greygatch/react-easy-chart/tree/feature/update-for-d3-v4

harunhasdal commented 7 years ago

Great effort @greygatch, please make a PR when you think it is ready

greygatch commented 7 years ago

@harunhasdal I'm having some trouble initializing the pie charts. Could you take a look at the index files from that branch in modules/pie-chart?

harunhasdal commented 6 years ago

We moved to d3 v4 in 1.0.0 release