Does anyone have any opinions on using d3 to replace JQuery/Zepto DOM tools? Are there any pros/cons?
I have come to d3 as a domain data scientist. Managing data with Jquery is too complicated for the unstructured
datasets I work with. React and Riot do a better job at managing it, but naming is still a huge problem. In larger
projects I find that the current web-design tools are just not built for high-variety data.
I have found that d3 as a DOM builder has some nice benefits.
- Code is much more modular, reusable
- Less modifications to data structures
- More readable code
- Substantially less naming
Instead of having d3 build svg's, which it does very well, I will pass the structured data to templating tools like Handlebars, Riot, or React to build coarse pieces of the page.
Here are some small ideas I have tried:
I have not see much use of d3 in this manner. I am wondering if it is frowned upon.