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 current Bar/Pie versions
"@nivo/bar": "^0.59.2",
"@nivo/pie": "^0.59.1",
TypeScript property definitions for onMouseEnter/Leave are missing, hence instantiating nivo charts with onMouseEnter/Leave functions is not possible or not intuitive.
my current workaround is
constchartProps: BarSvgProps={//init with regular props}//expand properties with mouse enter/leave handlerObject.assign(chartProps,{onMouseEnter: (data: BarExtendedDatum,event: React.MouseEvent<HTMLCanvasElement>)=>{event.currentTarget.style.cursor='pointer'event.currentTarget.style.strokeWidth='2'event.currentTarget.style.opacity='0.8'},onMouseLeave: (data: BarExtendedDatum,event: React.MouseEvent<HTMLCanvasElement>)=>{event.currentTarget.style.cursor='auto'event.currentTarget.style.strokeWidth=''+borderWidthevent.currentTarget.style.opacity='1'}})returnnewResponsiveBar(chartProps)
More context:
this functions were added with #295 and PR #280
do you want PR for this issue?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
in current Bar/Pie versions
"@nivo/bar": "^0.59.2",
"@nivo/pie": "^0.59.1",
TypeScript property definitions for onMouseEnter/Leave are missing, hence instantiating nivo charts with onMouseEnter/Leave functions is not possible or not intuitive.
my current workaround is
More context:
this functions were added with #295 and PR #280
do you want PR for this issue?
The text was updated successfully, but these errors were encountered: