victory-chart v24.6.0 Release Notes

Release Date: 2018-01-02 // over 6 years ago
    • 544
    • 👍 victory-core/324 Adds support for external event mutations
      • Adds externalEventMutations prop to VictorySharedEvents and all components enhanced with the add-events HOC
      • externalEventMutations prop format: externalEventMutations: PropTypes.arrayOf(PropTypes.shape({ callback: PropTypes.function, childName: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]), eventKey: PropTypes.oneOfType([ PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string ]), mutation: PropTypes.function, target: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]) })) Note: eventKey and target must be specified for externalEventMutations. When using extenalEventMutations with shared events (i.e. events on VictoryChart etc), childName is also required.

    Note: The callback supplied to externalEventMutations should be used for clearing mutations. This is crucial for animating charts