victory-chart v8.0.0 Release Notes
Release Date: 2016-05-13 // almost 8 years ago-
improves consistency for
labelComponent
anddataComponent
props. Replaces a customSliceLabel
component withVictoryLabel
to make the api more consistent and predictable. This is a breaking change for custom label components, asVictoryLabel
expects a different set of props than the previousSliceLabel
component. See VictoryLabel for more detail.Custom components are now supported for all rendered axis elements (axis, axisLabel, grid, ticks, tickLabels)
All data and label components now have access to scale so that they can create correctly scaled elements from data i.e. error bars.
- ๐
Functional styles and props are now all evaluated before they are passed as props to
labelComponent
ordataComponent
, so that custom components will have access to the final values. - events are bound and partially applied prior to being passed as props to
labelComponent
ordataComponent
- ๐
it is now possible to specify
angle
andverticalAnchor
props forVictoryLabel
via the style object - event return values are stored differently on state to facilitate interaction between data and labels. This is a breaking change for events as event handlers must now return an object with with
data
and/orlabels
keys so that these values may be applied appropriately to data and label elements respectively.
- ๐
Functional styles and props are now all evaluated before they are passed as props to