How do I highlight a single segment of the Pie chart on mouseover?

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Arun S on 12th March 2013

I was trying to highlight the pie on mouse over to it and the code that I wrote is as below:

    pie4.Set('', showPointer);
    function showPointer(e, pie)
    { ='pointer'; '0.6';

but this gives opacity to the entire graph not the pie on which mouse is on. I later tried to give pie[0].style.opacity but that didnt work.
Posted by RGraph support on 12th March 2013
Hi there,

Any CSS that you specify will apply to the whole canvas tag - not individual elements that are drawn on the canvas.

You can do highlighting though by using the explode() function.


Add a reply

« Back to message list