Answer the question
In order to leave comments, you need to log in
Which solution works best with SVG?
Welcome all!
There is a purely theoretical question. I found such a feature in Jquery , it does not know how (or knows how, but poorly) to work with SVG elements . For example, to assign a class to a g or path element with addClass/toggleClass , one has to work "like text", at the attribute level with the attr
method.
Is there a better solution for manipulating things like this?
Answer the question
In order to leave comments, you need to log in
jQuery SVG and you work with SVG giblets just like any other DOM object on the page.
d3.js library. Consider an analog of jquery, also works with the DOM, but focused on data visualization.
d3 is great at manipulating SVG elements. You can probably pull out only the part responsible for working with SVG and not load the rest.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question