var circle = r.circle(25,50,10).attr({fill:'#b71e16', stroke:'#71140f'});
// set it
circle.data('custom-attribute', 'value');
// get it
data = circle.data('custom-attribute');
alert(data);
Code Example |
---|
Javascript :: visio prevent arrows from snapping |
:: geocoding react |
Javascript :: |
Javascript :: how to make a <li when clicked on a button js |
Javascript :: jquery show function to javascript code |
Javascript :: |
:: |
:: |
Javascript :: how to only register one click on nested component and not parent component in react js |
:: |
Javascript :: java home sdk error |
Javascript :: multiple parameters in url Servlet |
Javascript :: |
:: emacs some part of the text read only |
Javascript :: |
:: |
:: faster filter array in JavaScript |
Javascript :: finalGrade % 5 && <38 |
:: merge two array with same length as object |
Javascript :: |
Javascript :: |
Javascript :: md5 online decrypt |
Javascript :: Replacing If Else Chains with Switch |
Javascript :: js particles without plugin |
:: Old Syntax of Router Switch |
:: |
Javascript :: get last day of month js |
Javascript :: python save api response to json file append |
Javascript :: |
:: converting jsObject to JSON |