chaarts icon indicating copy to clipboard operation
chaarts copied to clipboard

Bug on the pie demo page

Open GoOz opened this issue 2 years ago • 2 comments

I was browsing and stumbled upon a bug.

https://github.com/ffoodd/chaarts/assets/1280069/540b508b-1ae7-4296-abe1-beedc6b637c9

Can't see and reach the HTML bit with my mouse.

Also the tooltips on the sides are cropped but I'm guessing this is a size/overflow detail.

EDIT: Forgot to specify my setup. :p Firefox v124 MacOS 14.4.1

GoOz avatar Apr 15 '24 08:04 GoOz

Thanks, I reproduce it on Ubuntu too. Not quite sure what's going on though :D

ffoodd avatar Apr 17 '24 14:04 ffoodd

@ffoodd I believe in you! :D

GoOz avatar Apr 17 '24 18:04 GoOz

Found it! 7th position's first value was incorrectly always 0% (used for values between 75% and 100%).

It needed to be clamped between 0% and the 50-75% value if in this range—which is forced as max in clamp() if value was less than 75.

Commit might be clearer :D

ffoodd avatar Jun 11 '24 07:06 ffoodd