Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?)

like image 888
Nikita Vlasenko Avatar asked Nov 06 '15 10:11

Nikita Vlasenko


People also ask

Is D3 js still used?

The JavaScript ecosystem has completely changed during this time, in terms of libraries, best practices and even language features. Nevertheless, D3 is still here. And it's more popular than ever.

What is better than D3 JS?

The best alternative is Graphviz, which is both free and Open Source. Other great apps like D3. js are RAWGraphs, Plotly, Chart. js and Google Charts.

Should you use D3 JS?

D3 helps you bring data to life using HTML, SVG and CSS. D3's emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation.

Is D3 js free for commercial use?

The project is entirely open source and freely available on GitHub. D3 is released under a BSD license, so you may use, modify, and adapt the code for noncommercial or commercial use at no cost.


1 Answers

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.

like image 100
Madhu Benidi Avatar answered Sep 22 '22 17:09

Madhu Benidi