Is it possible to select multiple bars at once?


« 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 Tarak on 20th April 2017
Hi,

How can I select multiple bars in the bar chart? is there any way to select?

I want to use this bars as check boxes like select multiple bars one after another and unselect one after another.

Thanks,
Tarak
Posted by Richard on 20th April 2017
Hi there,

There's nothing built in that does that for you (not multiple bars at least); but I can see that it would be feasible using the built-in events.

For example use the click event to highlight the bar (and crucially, note it in some data structure) and then in an ondraw event highlight the bars required (using the data structure as a list of bars that you need to highlight).




Richard
Posted by Richard on 20th April 2017
Hi there,

This tweaked my button, so I made an example of it here:

www.rgraph.net/tests/bar-multiple-select.html






Richard

Add a reply

 




« Back to message list
RGraph on social media