A collection of composable React components for building interactive data visualizations
OTHER License
Bot releases are hidden (Show)
Published by boygirl about 6 years ago
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
Axis
/ Grid
primitive component has been renamed LineSegment
victory-chart
and victory-core
packages export different sets of packages than they used to. See the complete list belowNew Package Organization
victory
exports everything exported from the packages below[email protected]
exports VictoryAxis
[email protected]
exports VictoryArea
and Area
[email protected]
exports VictoryBar
and Bar
[email protected]
exports VictoryBoxPlot
[email protected]
exports VictoryBrushContainer
, BrushHelpers
and brushContainerMixin
[email protected]
exports VictoryBrushLine
[email protected]
exports VictoryCandlestick
and Candle
[email protected]
exports VictoryChart
[email protected]
still exports several packages that are used by several Victory components:
VictoryAnimation
VictoryClipContainer
VictoryContainer
VictoryLabel
VictoryPortal
and Portal
VictoryTheme
VictoryTransition
Arc
, Border
/ Box
, Circle
, ClipPath
, LineSegment
(formerly Axis
/ Grid
), Line
, Path
, Point
, Rect
, Text
, TSpan
, Whisker
addEvents
, Axis
, Collection
, CommonProps
, Data
, DefaultTransitions
, Domain
, Events
, Helpers
, Immutable
, LabelHelpers
, Log
, PropTypes
, Scale
, Selection
, Style
, TextSize
, Timer
, Transitions
, Wrapper
[email protected]
exports createContainer
, combineContainerMixins
and makeCreateContainerFunction
[email protected]
exports VictoryCursorContainer
, CursorHelpers
and cursorContainerMixin
[email protected]
exports VictoryErrorBar
and ErrorBar
[email protected]
exports VictoryGroup
[email protected]
exports VictoryLegend
[email protected]
exports VictoryLine
and Curve
[email protected]
exports VictoryPie
and Slice
[email protected]
exports VictoryScatter
[email protected]
exports VictorySelectionContainer
, SelectionHelpers
and selectionContainerMixin
[email protected]
exports VictorySharedEvents
[email protected]
exports VictoryStack
[email protected]
exports VictoryTooltip
and Flyout
[email protected]
exports VictoryVoronoi
and Voronoi
[email protected]
exports VictoryVoronoiContainer
, VoronoiHelpers
and voronoiContainerMixin
[email protected]
exports VictoryZoomContainer
, RawZoomHelpers
, ZoomHelpers
and zoomContainerMixin
VictoryVoronoiContainer
when calculating voronoi layoutsstatic role
when calculating data and domain from child components.VictoryZoonContainer
from downsampling stacked databarWidth
and candleWidth
props to VictoryBar
and VictoryCandlestick
. Adds candleRatio
prop to VictoryCandlestick
onBrushCleared
callback prop for VictoryBrushContainer
VictorySharedEvents
or direct triggers and voronoi triggers)VictoryVoronoiContainer
label function. Thanks @evsheinoVictorySelectionContainer
Point
, Bar
etc.)active
prop on all primitive components that is used when evaluating functional styles and propsactive: true
on both labels and data componentsdefaultEvents
are supported for containerComponents
This release includes major breaking changes related to VictoryZoom
VictoryLegend
componentVictoryContainer
to render either <g>
or <svg>
depending on the value of the standalone propVictorySharedEvents
onClick: (event, targetProps, eventKey, context) => {...}
addEvents
so that evented components can pick up "parentControllerProps" from parent state
VictoryZoomContainer
setState
VictoryZoomContainer
to call methods like resumeAnimation
VictoryBrushContainer
VictoryZoomContainer
to replace VictoryZoom
VictoryZoom
VictorySelectionContainer
selectionComponent
for VictorySelectionContainer
domain
and standalone
to list of props that get stored in parent stateonWheel
and onMouseMove
events on Victory container componentsBREAKING CHANGES
VictoryTooltip
no longer automatically adds the active
prop to data when hovered. To turn this behavior on, set the new activateData
boolean prop on VictoryTooltip
label
in favor of labels
in VictoryLine
and VictoryArea
, allowing individual data labels for these components like in other Victory components. This will be a breaking change for anyone using the label
prop in VictoryLine
or VictoryArea
. Series labels will need to be configured manually.VictoryZoomContainer
now zooms both x and y dimensions, use the prop dimension="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 the minimumZoom
prop, which takes an object with numeric values for x and/ or y.VictoryBrushContainer
no longer has dimension="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 the active
prop to data when hovered. To turn this behavior on, set the new activateData
boolean prop on VictoryTooltip
theme
prop to VictoryContainer
so that custom containers may pick up themes from their parentstitle
and desc
props from VictoryContainer
text
as an array for VictoryLabel
style
as an array for VictoryLabel
so that each line of a multi-line label may be styled independentlyArea
and Curve
primitivesreduceChildren
method to Helpers
to ensure order consistency when working with nested childrensortKey
propsVictoryVoronoiContainer
for hover events (tooltips). VictoryVoronoiContainer
has several benefits over VictoryVoronoi
and VictoryVoronoiTooltip
dimension="x"
creates vertical hover areas for every unique x value in all child datalabel
in favor of labels
in VictoryLine
and VictoryArea
, allowing individual data labels for these components like in other Victory components. This will be a breaking change for anyone using the label
prop in VictoryLine
or VictoryArea
. Series labels will need to be configured manuallyVictoryArea
, and groups all line and area segments (i.e. split by null values) into the same eventKey
, so that they operate as a single line for the purposes of events.VictoryZoomContainer
minimumZoom
prop for VictoryZoomContainer
translateY
prop for ClipPath
to support x, y zoom behaviorclipPadding
in ClipPath
Published by coopy almost 9 years ago
Published by boygirl almost 9 years ago
The following components documented and ready to use; API subject to change:
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