-378 - Adds disableContainerEvents
prop for all native container components
- victory/#1088 - Bugfix: don’t ignore angle: 0 for text styles
- victory/#1091 - Fix inconsistent defaultBrushArea behavior. Thanks @bees
- victory/#1093 - Remove trailing whitespace and incorrect zeroes in transform strings
- victory/#1094 - Support direction prop for VictoryLabel and Text primitive
- victory/#1096 - Fix bug in horizontal zooming and panning
- victory/#1101 - Fix arguments in
VictoryVoronoiContainer
label function. Thanks @evsheino
-354
- Updates Victory dependencies to
30.1.0
- Supports
react-native-svg^6.5.0
- Updates all
victory-*
dependencies to use30.0.0
versions, including new, more modular packages. Please see Victory's Changelog for details, and this blog post for versioning rationale - Upgrades
victory-native
for compatibility with[email protected]
Associated Pull Requests:
-347 updates test and demo infrastructure to work with [email protected]
-346 refactors and simplifies native container mixins, and enforces consistency for imports
-343 updates all victory-*
dependencies and updates infrastructure to babel 7
VictoryCore
-390 Breaking Change for other Victory packages
This PR changes how the exported helper reduceChildren
operates, and removes getDomainFromGroupedData
-392 Make sure transforms are applied to primitive components
VictoryChart
-555 Refactors how VictoryStack
and VictoryGroup
interact with child data. Fixes bugs related to stacked and grouped charts in VictoryVoronoiContainer
-322 Use Dimension.get("window").width
to set the default width
and height
for VictoryPie
Breaking Changes
-
Refactors utility methods. This is an internal breaking change, but should not be a breaking change for most Victory users. See victory-core/380 for details
-
Upgrades to
react-fast-compare@^2.0.0
which changes function comparison. This means that Victory components will update when functions are not equal. This closes several Victory issues, but may cause a slight performance decline -
Disable arbitrary styles from data This change deprecates Victory's ability to automatically pick up style attributes from the data object. This change will improve performance, but will be a breaking change for many users. Fortunately the upgrade path is simple:
If your data object looks like
data={[
{ x: 1, y: 1, fill: "red", opacity: 0.2 },
...
]}
Add the following functional styles:
style={{ data: { fill: (d) => d.fill, opacity: (d) => d.opacity } }}
and everything will work as before.
- Limit Pre-calculating label props Base props for labels will no longer be pre-calculated unless a labels prop exists. This change improves performance, but it will be a breaking change for users who were using events for adding labels to elements that did not already have them using an event mutation like:
events={[{
target: "data",
eventHandlers: {
onClick: () => {
return [{ target: "labels", mutation: () => ({ text: "clicked" }) }];
}
}
}]}
If you are using this pattern, you can make labels work as expected by adding a dummy labels prop like: labels={() => null}
Note: This change does not affect tooltips, which exist, but are invisible until they receive the active
prop
New Features
- Adds
minDomain
andmaxDomain
props. These props may be used to set one edge of a domain while allowing the other edge to be determined by data or other props.minDomain
andmaxDomain
overridedomainPadding
. - Adds
singleQuadrantDomainPadding
prop. This prop may be given as a boolean or an object with boolean values for x and y. When this prop is set tofalse
for a given dimension, anydomainPadding
applied in that dimension will not be constrained to existing quadrants. - Support top and bottom cornerRadius for bars. Support functional cornerRadius
defaultBrushArea
prop with supported options "all", "none" and "disable"
-292 Fixes a bug with polar line and area chart rendering
-289 Add VictoryBoxPlot
-277 Fixes a naming bug in VictoryZoomContainer
-258 Support disable
prop on container components
-250 Refactors all primitive components and updates to [email protected]
dependencies. See CHANGELOG.
Note: VictoryBrushLine
is not implemented in victory-native
-232 Import from victory-/es instead of victory-/src
- 221 Fixes a bug with circular clipPaths
- 215 Fixes a bug with press events and VictoryPortal
- 214 Fixes bugs in
VictoryZoomContainer
andVictoryContainer
- 203 Transform parsing for
[email protected]
. requires[email protected]
VictoryCore
- [316] (FormidableLabs/victory-core#316)
- adds
cornerRadius
prop forBar
- adds
barRatio
prop forBar
- removes rounding from calculated paths
- fixes a domain bug for negative bars and areas
- adds
VictoryChart
- Updates
react-*
andvictory-*
dependencies to latest versions - Adds a temporary fix for text rotations. More robust fix pending resolution of react-native-svg#242
157 Supports changes related to VictoryLegend More details
119 Transform slices rather than entire VictoryPie group
116 remove peerDependencies; use ~ deps 113 Improve VictoryArea
111 Adds VictoryLegend
104 Supports polar charts for victory-native
Breaking Change
- Temporarily disables all rotation transformations on text elements due to an underlying issue in
react-native-svg
- Peg
react
to exact alpha version,16.0.0-alpha.12
.
- Fixes animations on VictoryLine and VictoryArea. Requires upgrades to
react
,react-native
,react-native-svg
.
- VictoryCursorContainer, dep upgrades, remove VictoryZoom + VictoryVoronoiTooltip
- Allows animations on Android (fixed in
react-native-svg
)
- Fixes synthetic event reuse error in VictoryZoomContainer
- Adds VictoryVoronoiContainer, VictorySelectionContainer, VictoryZoomContainer, VictoryBrushContainer
- Fixes VictoryLine and VictoryArea animations
- Upgrades Victory dependencies
- Fixes demos and hot reloading
- Removes OS-specific font
- Removes victory-chart-native, victory-pie-native, victory-core-native
- Depends directly on victory-chart and victory-pie (victory-core was already a dep)
- Upgrades to
react-native@~0.42.0
andreact-native-svg@^5.1.5
- Fixes broken demos
- Changes how transitions and animations operate for continuous data
- Adds support for className in primitive components
- Moves react and react-native to peerDependencies
- Adds support for VictoryZoom
- Adds support for VictoryPortal
- Exports primitive components directly from Victory
- Adds support for VictoryTooltip
- Adds support for VictoryVoronoi
- Adds support for VictoryVoronoiTooltip
- Portal pattern for tooltips is not supported in this release
- Moves
react-native-svg
topeerDependencies
- Adds support for
clipPath
- Updates all dependencies
- Fix demos
- Initial Release