I am using RGraph in my Angular 7 application.
while using horizontal bar graph i am unable to click when the bar value is zero.
i have tried tooltipsHotspotYonly: true and tooltipsHotspotXonly: true
Please let me know if anyone have answer for this.
The Bar chart has the tooltipsHotspotXOnly to facilitate this. The HBar has no such property though - so I've added one in - tooltipsHotspotYOnly. The replacement getShape() function is this:
Now you can either:
If you're comfortable editing the HBar library, take the code here and replace the getShape() function in your RGraph.hbar.js file.
Download the updated library from here:
https://www.rgraph.net/tests/canvas.hbar/RGraph.hbar.js
(it will remain until the next version is available at least - at which point you can get the new HBar library from the standard RGraph download: https://www.rgraph.net/download.html#stable )
Wait until version 5.27 comes out and the tooltipsHotspotYOnly option it will be a part of RGraph (use the link above).