Skip to content

react-plot v0.17.0

Choose a tag to compare

@zakodium-bot zakodium-bot released this 10 Apr 08:42
2c4f403

⚠ BREAKING CHANGES

  • do not adapt axes to shifted series (#358)
  • use two svg layers to improve annotations performance (#360)
  • rename displayMarker prop to displayMarkers (#361)
  • onDraw callback was renamed to onEnd in useDrawPath and useDrawRectangle
  • use pointer events instead of mouse events
  • Numeric padding is now interpreted as an offset on the axis' scale. Use for example paddingStart="10%" instead of paddingStart={0.1} for percentages. Padding now only takes effect if the axis' boundary (min or max) is not set.

Features

  • add close and onDraw props to useDrawPath (#339) (e27ea7c)
  • add Group annotations style (#295) (1288aa7)
  • add ScalarValue type (#386) (9121984)
  • add support for nested PlotController contexts (#309) (1573afe)
  • add tickFormat prop to ParallelAxis (#336) (9dacd90)
  • add useAxisWheelZoom hook (3ee76fd)
  • add usePan hook (3ee76fd)
  • add usePlotControllerAxis hook (3ee76fd)
  • allow lines in ScatterSeries (#354) (0eee43c)
  • improve default values in legend (#337) (07ceb40)
  • interpret padding as number, string, or percentage (#341) (4664c20)
  • provide axis domain to plot event handlers (3ee76fd)
  • show and hide series from the legend (#294) (3ba55e1)
  • use pointer events instead of mouse events (c43ce78)
  • use two svg layers to improve annotations performance (#360) (ce897db)

Bug Fixes

Code Refactoring

  • rename displayMarker prop to displayMarkers (#361) (7a49547)