Jesús Estévez
Just another simple developer
source: https://www.slideshare.net/kurotanshi/study4tw-d3js
https://www.slideshare.net/helxsz/d3-36763651
https://bocoup.com/blog/reusability-with-d3
The next step is to wrap this code into a generation function, which reduces initialization to just one line. The function takes in three arguments: the data, a DOM target, and an options object which can be used to overwrite default configuration variables. Take a look at how this can be done:
function drawChart(dom, data, options) {
https://bocoup.com/blog/reusability-with-d3
https://northlandia.wordpress.com/2014/10/23/ten-best-practices-for-coding-with-d3/
By Jesús Estévez
interesting d3js information done by other people