victory-chart v8.0.0 Release Notes

Release Date: 2016-05-13 // almost 8 years ago
    • improves consistency for labelComponent and dataComponent props. Replaces a custom SliceLabel component with VictoryLabel to make the api more consistent and predictable. This is a breaking change for custom label components, as VictoryLabel expects a different set of props than the previous SliceLabel 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 or dataComponent, 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 or dataComponent
      • ๐Ÿ’… it is now possible to specify angle and verticalAnchor 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/or labels keys so that these values may be applied appropriately to data and label elements respectively.