Adding a double click event listener

Share RGraph:   Share or Like RGraph on Facebook!

« 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 sudarshan on 2nd June 2016
I am drawing bar graph in this i want to see on single click should appear tooltips and double click should be an alert function in that i will write another code.




it's showing only single click



left click and right click functions are also fine for me please help me
Posted by Richard on 2nd June 2016
Hi there,

You could use click for tooltips and double-click for your other handler, but when you double click the tooltips will be activated too.

So I've made an example of using the contextmenu event instead. So there you have tooltips using the left click and right click for you other event listener.

www.rgraph.net/fiddle/view.html/a-bar-chart-with-a-context-event-listener







Richard
Posted by sudarshan on 3rd June 2016
After the Right click it's showing tooltips i need left to tooltip and right to another logic send me the example code for that
Posted by Richard on 3rd June 2016
Hi,

That's what the example does.





Richard
Posted by sudarshan on 3rd June 2016
Hi thank you for your reply

I am using bar charts i.e h.bar chart i used canvas redraw it's redraw the canvas but tooltips are not showing properly can you please help me i scrolled down the chart everything is fine with chart except tooltips please help me.
Posted by Richard on 3rd June 2016
Hi there,

Well the example chart I made you seems fine - so you'll have to put an example of it on your website so that I can see it.



Richard
Posted by sudarshan on 3rd June 2016
I used the more than 30 i put a condition added cvs div it's added successfully but tooltips are showing for 1st canvas only remaing values are shown in bottom of the page so could you please help me
Posted by Richard on 3rd June 2016
Hi there,

You're not making sense - put an example online so that I can see what you're doing.




Richard

Add a reply




« Back to message list