D3.js and NVD3.js, which to use and when [closed]
Asked Answered
C

1

6

What are the benefits/drawbacks of using D3.js vs NVD3.js?

(some points that interest me most: Isn't it better to stick just with NVD3.js if it is better in any way? Why use D3.js? Is it that NVD3.js just provides a set of sample graphs and that's why we might use NVD3.js if we find precisely the same thing as we need in their examples? And d3.js should be used when we need a very specific thing that has not been done with NVD3.js?)

Costotomy answered 6/11, 2015 at 10:39 Comment(1)
If your requirement is a simple Barchart or line chart pie chart or anything in the example pool nvd3.org/examples/index.html i would go with NVD3..._reason:(less lines of code)_ If I have to make any chart other than the one's in nvd3 example pool I have no choice but to go with d3 ;)Moise
V
5

I would look into using nvd3.js or similar D3 based libraries as it makes the chart component reusable and intuitive. Here is an article that helped with the decision from Mike Bostock, who created D3, https://bost.ocks.org/mike/chart/. If there is a use case where you need to implement something that is not available in nvd3, you can try to do that using the reusable pattern suggested in the previously mentioned article.

Vella answered 26/1, 2017 at 22:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.