Skip to content

v0.0.50

Latest
Compare
Choose a tag to compare
@williaster williaster released this 11 Dec 18:06
· 338 commits to master since this release

v0.0.50

๐Ÿ† Enhancements

[xy-chart]

  • Ability to "snap" the tooltip to the x or y value of a datum, by setting snapTooltipToDataX and/or snapTooltipToDataY. fixes #77 #81
  • Support for using the chart container for mouse events, instead of series or a voronoi. this is now set with the eventTrigger prop as 'series' [default], 'voronoi', or 'container'. #81
  • The addition of container events necessitates shared tooltips, i.e., tooltips that contain data for for all series for the hovered x value. fixes #78 #81
  • Ability to programmatically trigger events using the eventTriggerRefs callback (see updated <LineSeriesExample /> for an example) #81
  • adds innerRef prop which is set on the inner svg #81

[shared]

  • the signature of onMouseMove in <WithTooltip /> now accepts an optional coords object of the shape { x: Number, y: Number }. If either or both of x or y is specified they will be used to set the the tooltips left and top instead of the event's coordinates. #81

[forms]

  • adds active prop to <Button /> #81

๐Ÿ’” Breaking Changes

  • [xy-chart] the <XYChart /> useVoronoi prop is removed. instead use eventTrigger='voronoi #81

๐Ÿ“œ Documentation

  • [xy-chart] documents the above enhancements #81

๐Ÿ  Internal
[xy-chart]

  • moves <XYChart /> static method to their own utils files #81
  • breaks out several functions in chartUtils into their own files #81
  • adds and uses sharedSeriesProps #81

๐Ÿ› Bug Fix

  • Fixes a bug where tickLabelProps is not used when passed in either <XAxis /> or <YAxis />. This prop enables per-tick styles so is importantรฉ! #82