pygal icon indicating copy to clipboard operation
pygal copied to clipboard

tooltips not showing

Open lesingerouge opened this issue 10 years ago • 1 comments

Hi, First of all thanks for the great library!

I am having some problems with tooltips in Firefox. I am using the 2.0 version, loading the script locally, and loading the object from flask as a svg string. I currently load multiple charts per page, but all of them lack the tooltips. Every chart is dynamically loaded and initialised with: pygal.init($('#svg-fig svg').get(0)).

The console error I get is : TypeError: parent.getBBox is not a function.

I am hoping you might point me in some direction in order to investigate and solve this error.

Thank you!

Later edit: tested this on Chrome, Firefox and Safari

lesingerouge avatar Mar 31 '16 12:03 lesingerouge

SOLVED: you have to initialise each chart individually with: pygal.init($("#YOUR_SVG_CONTAINER_ID svg").get(0))

lesingerouge avatar Mar 31 '16 15:03 lesingerouge