Similarily to jQuery and Raphael, this function would allow to bind arbitrary objects to SVG elements. That's super helpful for any datavis applications.
Syntax:
el.data('key', obj); // store data, return element
el.data('key'); // return data
el.data('key', null); // remove data
Similarily to jQuery and Raphael, this function would allow to bind arbitrary objects to SVG elements. That's super helpful for any datavis applications.
Syntax: