Re:Replacing jQuery with D3
by ww520 on Friday May 15, 2015 @08:04AM
(#9550039)
D3 is an amazing library. At first glance thought it's a charting library. Upon further usage realized it's more of a DOM manipulation library just like JQuery, with the additional support on SVG, which happens to do chart.
[ Parent
| on HN ]
Jquery works quite well on SVG too. It's all Dom nodes.
There are limits to what you can do with JQuery on SVG, hence the existence of plugins such as this one : http://keith-wood.name/svg.html
Yes.
I think D3 and JQuery differ more with the dynamic data binding. In D3 you can bind a function to an DOM value.
Re:Replacing jQuery with D3
by silverwind on Friday May 15, 2015 @01:26PM
(#9552116)
jQuery's SVG support is limited. For example, it can't do class manipulation today (will be in 3.0 though).
Re:Replacing jQuery with D3
by indubitably on Friday May 15, 2015 @04:08PM
(#9553325)
Javascript can also do DOM nodes…