I user raphael.js to draw my images/graphs on my website, and I'm having trouble implementing a gradient effect on my pie chart.
I call it that way :
<script type="text/javascript" charset="utf-8">
window.onload = function () {
var r = Raphael("holder");
var pie = r.g.piechart(250, 240, 180, <?php echo $vals; ?>,{colors: ["#fff", "#cc3333", "#f200fd"]});
};
</script>
I've read on the documentation that gradients effects are possible, like it is shown in some examples.
I tried : {colors: ["r#fff-#ccc","r#fff-#ccc","r#fff-#ccc"]} or {gradients : ["r#fff-#ccc","r#fff-#ccc","r#fff-#ccc"} but in vain..
Anyone tried it?
Thx a lot!