goatcounter
goatcounter copied to clipboard
[Bug] Gray bars appear on mouse hover when "view by day" is selected
Description: Gray bars appear on mouse hover when "view by day" is selected
See attached GIF for example of behaviour.
Can you tell me which browser you're using, and on which system? Thanks.
Sure thing:
- Browser: Chrome Version 121.0.6167.85 (Official Build) (arm64)
- System: MacOS 14.2 (23C64)
Reproduced in:
- Firefox 122.0 (64-bit)
- Safari 17.2 (19617.1.17.11.9)
Thanks. Looks like something goes wrong for bar charts with "view by day" selected but just a few days in the date range, so you have very wide bars.
It only breaks if you zoom; at zoom level 0 it's fine. I'm guessing your mac "zooms" automatically with its retina display(?)
Example: https://stats.arp242.net/?hl-period=week&period-start=2024-01-20&period-end=2024-01-27&filter=&daily=on
It only breaks if you zoom; at zoom level 0 it's fine. I'm guessing your mac "zooms" automatically with its retina display(?)
Macs don't zoom on their own.
It looks like it may be likely that the mouseover implementation doesn't take into account the DPR that's initialized in charty when drawing the boxes for hovers: https://github.com/arp242/goatcounter/blob/eb5052663d99d0d4c9d7218eb1394d99de792ff3/public/dashboard.js#L583
Okay, should be fixed. Let me know if you're still having problems.