github FormidableLabs/victory v31.1.0

latest releases: v37.0.2, v37.0.1, v37.0.0...
5 years ago

(2019-01-08)

  • 1222 Bugfix: Avoid rendering null values on discrete data

  • 1218 Bugfix: Ensure that calculated domains respect custom baselines for VictoryBar and VictoryArea

  • 1202 Bugfix: Correct missing bar values

  • 1208 Performance: Improve performance in addEventKeys

  • 1211 Performance: Optimize stringMap calculations

  • 1212 Performance: Optimize for preformatted data:
    When data objects already contain _x, _y (and _y0 where appropriate) and have data accessor props like x="_x", data will no longer be formatted by Victory, but will be used as is.
    Example:

    <VictoryArea
      data={[ { _x: 0, _y0: 1, _y: 2 } ...]}
      x="_x"
      y="_y"
      y0="_y0"
    />
    
  • 1209 Feature: Adds an animationWhitelist property to the animate prop. This property should be given as an array of strings. When this prop is given, only the prop names matching the array will be animated, and all other props will be instantaneously updates.

    Example:

    <VictoryBar
      animate={{
        animationWhitelist: ["data"]
      }}
      data={this.state.data}
      style={{
        data: this.state.style
      }}
    />
    

    When this property is not set, the static animationWhitelist of any given component will be used.

Don't miss a new victory release

NewReleases is sending notifications on new releases.