You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general the Scatterplot works really well with TypeScript, however in nivo 0.87.0 the typings for (custom) tooltip seem to be off and may cause a runtime TypeError if the data set is empty, e.g.
TypeError: Cannot read properties of undefined (reading 'data')
at Tooltip (...)
[...]
In general the Scatterplot works really well with TypeScript, however in nivo 0.87.0 the typings for (custom) tooltip seem to be off and may cause a runtime TypeError if the data set is empty, e.g.
To reproduce:
Then hover over the chart.
Expected solutions:
node === undefined
, ornode
optional in tooltip props type and handle theundefined
case in the default tooltipThe text was updated successfully, but these errors were encountered: