Releases: plotly/react-plotly.js
Releases · plotly/react-plotly.js
Release list
v4.1.0
Added
- Added missing
onTreemapClickandonIcicleClickevent props for theplotly_treemapclickandplotly_icicleclickevents [#376] - Added additional missing events:
onLegendTitleClick,onLegendTitleDoubleClick,onBeforePlot,onAnimating, andonTransitioned[#376]
Fixed
- Returning
falsefromonSunburstClick,onTreemapClick, oronIcicleClicknow prevents the drill-down [#376]onUpdatenow fires for these viaplotly_animated, so it reports the figure after the newlevelis applied and no longer fires when the drill-down is cancelled
Removed
- Removed the errantly added
onClickAnywhereandonHoverAnywhereprops [#376]- plotly.js has no
plotly_clickanywhereorplotly_hoveranywhereevents, so these never fired clickanywhereandhoveranywhereare layout attributes that widen the ordinaryplotly_click/plotly_hover, so the feature is reached throughonClick/onHoverwith the layout flag set — see the README
- plotly.js has no
v4.0.0
Added
- Added native ESM output alongside CJS [#367]
- Published artifacts now live under
dist/instead of at the repo root; themainentry moved fromreact-plotly.jsto./dist/index.cjs - Dropped the unminified UMD bundle
import Plot from 'react-plotly.js'now resolves correctly in Rolldown and any other strict ESM environment
- Published artifacts now live under
- Added TypeScript declaration files (
index.d.ts/factory.d.ts) [#368]
Changed
- Update linting dependencies [#366]
- Refactored the wrapper from a class component to a functional component using hooks [#369]
- Refs forwarded to
<Plot>now resolve to the rendered<div>element (the plotly graph div) directly viaforwardRef, instead of to the class instance - Migration: replace
ref.current.elwithref.current
- Refs forwarded to
Fixed
v3.0.0
Added
onClickAnywhereandonHoverAnywhereevent props for the correspondingplotly_clickanywhereandplotly_hoveranywhereevents introduced in plotly.js v3 [#360]
Changed
- Migrated CI from CircleCI to GitHub Actions [#362]
- Migrated test framework from enzyme to
@testing-library/reactand bumped jest from 26 to 29 [#363]
Removed
v2.6.0
- Add onWebGlContextLost event - thanks to @markovist
- Minor dependency upgrades
v2.5.1
v2.5.0
- fixed issue with referencing element of unmounted component - thanks to @lavor
- added support for the
plotly_onrelayoutingevent - thanks to @lauri-codes - added support for the
plotly_sunburstclickevent - thanks to @LittleMikeDev devDependenciesupdates