Home › forums › Using CanvasJS › click feature is annoying when using together with zoom
Tagged: click, zoom
This topic contains 2 replies, has 2 voices, and was last updated by Anjali 3 years, 11 months ago.
ty for bring PNG export in last update, i love it :)
back to the topic
i have many bar that cant counted. (sometimes give us 1 or countless like 100 bars)
because canvasJs cant using autoHeight , so i must write fix value of height. In this case i use 300px, while widht: 100% AND absolutely im using zoom feature which throw away autoHeight problem.
But, today i want to use CLICK feature to give client easy way to view data depend on which bar he clicked.
everything was gonna fine.
but when im trying to zoom and Panning the chart, i often trigger the click function by accident even i try to zoom/panning it carefully (inadvertent or i didnt mean to click it, because i just want zoom and panning it to view the chart clearly)
i write that example in http://jsfiddle.net/QwZuf/109/
i’m not force u too rewrite your code/making update,
but i just want asking help/solution
i was tried to read whole documentation and googling, but i still cant figure the way
now i prevent my issue by using confirm();
so when user miss click when he slide mouse to zooming/panning , confirm pop up will show to him.
TRUE >> do some AJAX
FALSE >> return false for do nothing
i hope u have better solution , sunil.
We have fixed this issue in v1.5.6, please download the same.
You must be logged in to reply to this topic.