AntoineGuillot2 / D3partitionR

R package to visualise interactively hierarchical data.
http://enhancedatascience.com/2017/09/20/d3partitionr-0-5-beta/
40 stars 7 forks source link

Tooltips disappear when zooming in a level #17

Open olivier7121 opened 6 years ago

olivier7121 commented 6 years ago

Hello,

First many thanks to the contributors to this already great package which can only improve.

In a Shiny application, I noticed that sometimes when zooming in a level, the tooltips disappear when hovering. When zooming out back, the tooltips don't appear again. This bug also happens to the other D3partitionR objects displayed in the same Shiny application.

[EDIT]: This bug affects the 5 types of charts currently available. The tooltips might eventually reappear by zooming in and out on other D3paritionR objects in the same Shiny application. When eventually reappearing the location of the tooltips might also be erroneous.

Best regards,

Olivier

AntoineGuillot2 commented 6 years ago

Hello, would you have a reproducible exemple ?

olivier7121 commented 6 years ago

Hello Antoine,

Yes, please find the files attached. Input file.csv.txt Script.R.txt UpdatePathAllRFilesCurrentAndAllSubfolders.bat.txt

Just remove the artificial 'txt' extensions to make the files work.

Best regards,

Olivier

AntoineGuillot2 commented 6 years ago

Hello Olivier,

I have been able to replicate the bug, I think i have a fix for the single plot case, but it seems tricky when there are multiple plots. It probably comes from conflicts between the tooltips created or scoping between the different js scripts.