Answers for "Raphael JS store arbitrary data"

0

Raphael JS store arbitrary data

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);
Posted by: Guest on August-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language