plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.19k stars 1.03k forks source link

CalendarCanvas's tooltip broke in v0.80.0 #2122

Closed nekochan0122 closed 2 years ago

nekochan0122 commented 2 years ago

To Reproduce https://nivo.rocks/storybook/?path=/story/calendarcanvas--custom-tooltip https://codesandbox.io/s/calendarcanvass-tooltip-broke-in-v0-80-0-7dcb3q?file=/src/App.tsx

Screenshots image

Desktop:

nekochan0122 commented 2 years ago

I tested other canvas charts on nivo.rocks/storybook, They also broke 🥲

plouc commented 2 years ago

It seems to be related to this fix, it uses getBBox which isn't available for canvas elements.

nekochan0122 commented 2 years ago

It seems to be related to this fix, it uses getBBox which isn't available for canvas elements.

Thx for the reply, I'll keep following the PR and test it ❤️ Beautiful charts by the way.

yannbolliger commented 2 years ago

Hi there, when will this fix be released, is there already a date?

sighrobot commented 1 year ago

You may be interested in the temporary shim approach described in https://github.com/plouc/nivo/issues/2162#issuecomment-1467184517