Bar chart onclick event


« 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 Pallavi on 13th September 2013
Hi,

In bar chart,stacked bar and pie chart on onclick can I get key name or label or x-axis label associated for that bar in bar char chart,for that stack in stack bar chart and part of that pie chart.


Regards,
Pallavi
Posted by RGraph support on 13th September 2013
Hi there,

You can - one of the properties of the 'shape' variable is the index - which you then use with original properties:

www.rgraph.net/fiddle/view/a-pie-chart-retrieving-labels-key-from-the-onclick-event


Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site

Add a reply

 




« Back to message list
RGraph on social media