I used Firebug and console.log () to list the attributes in a string:
console.log(chart.lines[0].attr());
I clicked on the log line to see the details, for example:
fill: "none" path: [ ... ] stroke: "#ff0000" stroke-dasharray: "" stroke-linecap: "round" stroke-linejoin: "round" stroke-width: 2 transform: []
For me, I wanted to change the stroke width. This code works:
chart.lines[0].attr({'stroke-width': 8});
The line-width attribute is listed in the excellent RaphaelJS documentation .
For your problem, I expect that you need code like this:
chart.lines[0].attr({'fill': 'none', 'stroke': '#FF00FF'});
Hope this helps!
source share