Releases: FormidableLabs/victory
v30.2.0
- #1072 Fixes a bug related to correctly stacking grouped components
- #1074 Fixes a bug that was causing time scale data to be ignored by
VictoryVoronoiContainer
when calculating voronoi layouts - #1076 Implements a whitelist based on
static role
when calculating data and domain from child components. - #1077 Prevents
VictoryZoonContainer
from downsampling stacked data - #1078 Adds
barWidth
andcandleWidth
props toVictoryBar
andVictoryCandlestick
. AddscandleRatio
prop toVictoryCandlestick
- #1079 Adds
onBrushCleared
callback prop forVictoryBrushContainer
- #1080 Changes how tooltips are deactivated so that multiple sources may reactivate tooltips (i.e. multiple triggers in
VictorySharedEvents
or direct triggers and voronoi triggers)
#1081 Legends now render title and border when data is an empty array (previously nothing was rendered)
v30.1.0
v30.0.0
Victory is becoming a monorepo!
This will not be a breaking change for the majority of users, especially those importing all components from the main victory
npm package
Breaking Changes
- The
Axis
/Grid
primitive component has been renamedLineSegment
- Victory no longer supports git installs
victory-chart
andvictory-core
packages export different sets of packages than they used to. See the complete list below
New Package Organization
victory
exports everything exported from the packages below[email protected]
exportsVictoryAxis
[email protected]
exportsVictoryArea
andArea
[email protected]
exportsVictoryBar
andBar
[email protected]
exportsVictoryBoxPlot
[email protected]
exportsVictoryBrushContainer
,BrushHelpers
andbrushContainerMixin
[email protected]
exportsVictoryBrushLine
[email protected]
exportsVictoryCandlestick
andCandle
[email protected]
exportsVictoryChart
[email protected]
still exports several packages that are used by several Victory components:VictoryAnimation
VictoryClipContainer
VictoryContainer
VictoryLabel
VictoryPortal
andPortal
VictoryTheme
VictoryTransition
- Several primitive components:
Arc
,Border
/Box
,Circle
,ClipPath
,LineSegment
(formerlyAxis
/Grid
),Line
,Path
,Point
,Rect
,Text
,TSpan
,Whisker
- Several utilities:
addEvents
,Axis
,Collection
,CommonProps
,Data
,DefaultTransitions
,Domain
,Events
,Helpers
,Immutable
,LabelHelpers
,Log
,PropTypes
,Scale
,Selection
,Style
,TextSize
,Timer
,Transitions
,Wrapper
[email protected]
exportscreateContainer
,combineContainerMixins
andmakeCreateContainerFunction
[email protected]
exportsVictoryCursorContainer
,CursorHelpers
andcursorContainerMixin
[email protected]
exportsVictoryErrorBar
andErrorBar
[email protected]
exportsVictoryGroup
[email protected]
exportsVictoryLegend
[email protected]
exportsVictoryLine
andCurve
[email protected]
exportsVictoryPie
andSlice
[email protected]
exportsVictoryScatter
[email protected]
exportsVictorySelectionContainer
,SelectionHelpers
andselectionContainerMixin
[email protected]
exportsVictorySharedEvents
[email protected]
exportsVictoryStack
[email protected]
exportsVictoryTooltip
andFlyout
[email protected]
exportsVictoryVoronoi
andVoronoi
[email protected]
exportsVictoryVoronoiContainer
,VoronoiHelpers
andvoronoiContainerMixin
[email protected]
exportsVictoryZoomContainer
,RawZoomHelpers
,ZoomHelpers
andzoomContainerMixin
v0.18.0
BREAKING CHANGES
VictoryTooltip
no longer automatically adds theactive
prop to data when hovered. To turn this behavior on, set the newactivateData
boolean prop onVictoryTooltip
- Deprecates
label
in favor oflabels
inVictoryLine
andVictoryArea
, allowing individual data labels for these components like in other Victory components. This will be a breaking change for anyone using thelabel
prop inVictoryLine
orVictoryArea
. Series labels will need to be configured manually. VictoryZoomContainer
now zooms both x and y dimensions, use the propdimension="x"
to return to the old behaviorVictoryZoomContainer
now centers zoom behavior on the mouse position rather than the center of the chartVictoryZoomContainer
has a minimum zoom level of the extent of the domain / 1000. Set a custom minimum with theminimumZoom
prop, which takes an object with numeric values for x and/ or y.VictoryBrushContainer
no longer hasdimension="x"
as the default value.
Deprecation Notice
VictoryVoronoi
and VictoryVoronoiTooltip
have been replaced by VictoryVoronoiContainer
and will be deprecated in version 0.20.0
VictoryTooltip
no longer automatically adds theactive
prop to data when hovered. To turn this behavior on, set the newactivateData
boolean prop onVictoryTooltip
- Adds a
theme
prop toVictoryContainer
so that custom containers may pick up themes from their parents - Removes default
title
anddesc
props fromVictoryContainer
- Adds support for providing
text
as an array forVictoryLabel
- Adds support for providing
style
as an array forVictoryLabel
so that each line of a multi-line label may be styled independently - Changes how null data values are handled by
Area
andCurve
primitives - Adds a
reduceChildren
method toHelpers
to ensure order consistency when working with nested children
- implements data sorting for all components with a
sortKey
props
- Adds
VictoryVoronoiContainer
for hover events (tooltips).VictoryVoronoiContainer
has several benefits overVictoryVoronoi
andVictoryVoronoiTooltip
- Supports multi-dataset voronoi
- Much better performance (voronoi polygons are not actually rendered, so the number of nodes rendered is dramatically lower)
- Supports multi-data tooltips
- Supports rectangular selections with a dimension prop
i.e.dimension="x"
creates vertical hover areas for every unique x value in all child data
- Deprecates
label
in favor oflabels
inVictoryLine
andVictoryArea
, allowing individual data labels for these components like in other Victory components. This will be a breaking change for anyone using thelabel
prop inVictoryLine
orVictoryArea
. Series labels will need to be configured manually - Changes how null values are handled in
VictoryArea
, and groups all line and area segments (i.e. split by null values) into the sameeventKey
, so that they operate as a single line for the purposes of events.
- Supports x and y dimension zooming in
VictoryZoomContainer
- Adds a
minimumZoom
prop forVictoryZoomContainer
- Zooming centers on mouse position rather than in the center of the chart
- Adds a
translateY
prop forClipPath
to support x, y zoom behavior - Removes default
clipPadding
inClipPath
v0.17.0
- victory-core/195
- Fixes null event state bug
- victory-chart/431
- Sets a maximum amount of scale per zoom event for smoother interaction with fast onWheel events
v0.16.1
- victory-chart/429
- Throttles
onWheel
andonMouseMove
events on Victory container components - Exports container event helpers
v0.16.0
This release includes major breaking changes related to VictoryZoom
- victory-core/189 and 191
- Adds
VictoryLegend
component
- Adds
- victory-core/190
- Allows
VictoryContainer
to render either<g>
or<svg>
depending on the value of the standalone prop - Passes a timer down in context for
VictorySharedEvents
- Event handlers have access to the context they are being called from via an argument
- i.e.
onClick: (event, targetProps, eventKey, context) => {...}
- i.e.
- Enhances
addEvents
so that evented components can pick up "parentControllerProps" from parent state- useful for
VictoryZoomContainer
- useful for
- Adds the ability to define callbacks in the events prop that will be called after
setState
- useful for allowing
VictoryZoomContainer
to call methods likeresumeAnimation
- useful for allowing
- Allows
- victory-chart/427
- Adds
VictoryBrushContainer
- Adds
VictoryZoomContainer
to replaceVictoryZoom
- See pull request for examples
- Deprecates
VictoryZoom
- Changes default styles for
VictorySelectionContainer
- Adds override-able
selectionComponent
forVictorySelectionContainer
- Adds
domain
andstandalone
to list of props that get stored in parent state - Simplifies and standardizes container rendering across components.
- Adds
v0.15.0
- Adds
VictorySelectionContainer
- Changes when functional styles and props are evaluated (this may be a breaking change)
Functional styles and props are now evaluated in the primitive components (Point
,Bar
etc.) - Supports an
active
prop on all primitive components that is used when evaluating functional styles and props - Tooltips now trigger
active: true
on both labels and data components defaultEvents
are supported forcontainerComponents
Alpha
Alpha
The following components documented and ready to use; API subject to change:
- victory-animation
- victory-axis
- victory-bar
- victory-chart
- victory-label
- victory-line
- victory-pie
- victory-scatter
Functional styles and functional props (where appropriate) are implemented for all the data primitives (VictoryBar, VictoryLine etc.) and VictoryAxis
Components use d3-modules
Basic code coverage across all Victory components.
We make no promises about any code prior to this release. From this point on, you can expect a regular release schedule (~every two weeks) with detailed release notes. Check out our roadmap for upcoming features