Open m-gallesio opened 1 month ago
@m-gallesio thanks for the report. I'll go over it.
@m-gallesio, tested on :
As you can see from the below screenshot, it works showing tooltip correctly.
From the billboard.js 3.12.3 release, updated input type(mouse or touch) determination logic which possible the cause of your case. Check if you're using touch enabled devices.
My device is a regular laptop and should not be touch-enabled; I will have to look more into this.
I can confirm the issue is that newer firefox and this interaction property are not working together correctly by default. Here is a solution with touch explicitly set to false: interaction: {inputType: {mouse: true, touch: false}},
The relevant commit seems to be this: https://github.com/naver/billboard.js/commit/f6201adc23791ec90135c6b41a485ef1dfb0937f. Its message seems wrong, there IS a difference in conditions in that the old version checked the media queries WITH parentheses while the new version does NOT. I am decently sure parentheses should be included (see MDN as well as this line in the same file).
I am using Firefox 128.0.2 on Windows 10. Tooltips on bar charts do not work with billboard.js >= 3.12.3. They do work correctly in version 3.12.2.
This can be seen in any documentation page (e.g. https://naver.github.io/billboard.js/demo/#Chart.BarChart)
This seems to be a Firefox-specific problem, since they work in Edge 126.0.2592.113.