v0.0.50
๐ Enhancements
[xy-chart]
- Ability to "snap" the tooltip to the
x
ory
value of a datum, by settingsnapTooltipToDataX
and/orsnapTooltipToDataY
. 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 innersvg
#81
[shared]
- the signature of
onMouseMove
in<WithTooltip />
now accepts an optionalcoords
object of the shape{ x: Number, y: Number }
. If either or both ofx
ory
is specified they will be used to set the the tooltipsleft
andtop
instead of theevent
's coordinates. #81
[forms]
- adds
active
prop to<Button />
#81
๐ Breaking Changes
- [xy-chart] the
<XYChart />
useVoronoi
prop is removed. instead useeventTrigger='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