- #689 - unpin
victory
versions
- #676 - Pin
victory
to35.10.x
as a bandaid until we get a full bugfix for35.11.1
.
- #639 - Fixes a bug in native-specific types for container components
- #633 - Fixes a bug in native-specific types for
VictoryContainer
- #611 - Adds a temporary fix for a bug in
react-native-svg
that is causing events on the parent Svg to not be triggered in some circumstances
Updates all victory-*
components and adds accessibleLabel
attributes to primitive components that match aria-label
props.
Updates all victory-*
components and adds support for new OUIA props on VictoryContainer
This release introduces new label features and makes improvements to themes. This release includes breaking style changes. Please double check your label and tooltip styles when upgrading. Polar axes and pie charts may be particularly impacted.
Please see the main project changelog for full details
- #565 - Adds
VictoryHistogram
. Thanks @NgoKnows! - #564 - Adds
Background
primitive forVictoryChart
. Thanks @maddles and @wsparsons!
- #533 - Adds typescript type definitions. Thanks @mariano-formidable!
- #538 - Adds typescript demos. Thanks @mariano-formidable!
This PR updates victory-*
dependencies to version ^34.0.0
. This version uses the context API introduced in [email protected]
- #516 - copy
role
fromVictoryLabel
. Thanks @gurglet!
This PR updates victory-*
dependencies to version ^33.0.0
. Please see [release notes] (https://github.com/FormidableLabs/victory/releases/tag/v33.0.0) for breaking changes
In addition, this PR adds improvents that require [email protected]
to use react-native@~0.60.0
and react-native-svg@^9.0.0
Infrastructure, performance, and event improvements. Thanks @carlos-kelly!
- #487 - Upgrade to RN~0.60.0
- #490 - Fix native scroll bugs
- #491 - Improve performance with functional primitive components and a memoized
getNativeStyles
hook - #496 - Ensures that scroll events are only blocked when appropriate (e.g. zooming)
- #451 Updates the demo to use
react-native@~0.59.0
. Thanks @ratson - #452 Fixes crashes with react-native-svg v7.0.0 - v9.2.3. Thanks @msand
- #456 Adds a work around for a clipPath caching issue
- #450updates lodash to fix a security vulnerability
- Updates to
[email protected]
. Changes described here: https://github.com/FormidableLabs/victory/blob/main/CHANGELOG.md#3200-2019-02-27
- victory/1177 Adds support for controlling
radius
,innerRadius
,cornerRadius
,padAngle
,sliceStartAngle
andsliceEndAngle
for each individual slice of a pie:
Details:
The Slice
primitive used by VictoryPie
now takes radius
, cornerRadius
, innerRadius
, padAngle
, sliceStartAngle
and sliceEndAngle
props. Each of these props may be given as number or a function of datum
and active
. padAngle
, radius
, cornerRadius
and innerRadius
will be passed down from props on VictoryBar
, but sliceStartAngle
and sliceEndAngle
must be defined directly on the Slice
instance, These values should be given in degrees. To make these values easier to use as functional props, startAngle
, endAngle
, and padAngle
(in degrees) are added to each datum
passed into Slice
. (If your data already has these properties they will not be overridden)
Breaking Changes
The Slice
primitive will still take a pathFunction
prop, but this prop will no longer be provided by VictoryPie
. This will not be a breaking change for most users. This will only affect users who were wrapping the Slice
component and making use of the pathFunction
prop provided by VictoryPie
Users who were providing their own pathFunction
prop to Slice
should not be effected.
-
#399 - Activate cursor
onTouchStart
-
victory/#1158
cornerRadius
improvements forVictoryBar
- Artifacts caused by
cornerRadius
values larger than the height of the bar have been corrected cornerRadius
now supportstopLeft
,topRight
,bottomLeft
andbottomRight
values in addition to existing values. This is not a breaking change. These values may be used alongside existing values fortop
andbottom
, but more specific values will override less specific values.
- Artifacts caused by
- #394 - Correctly clears cursors when
onTouchEnd
is triggered. Thanks @svenlombaert! - #393 - Correct reexports for all
victory
components
-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