Changelog History
Page 18
-
v0.21.1 Changes
June 29, 2017๐ Minor bug fixes:
VictoryCore
- ๐ victory-core/255 style typo
- victory-core/257 single point domain calculation bug
- victory-core/259 Area render bug
- victory-core/260 Area render order
- ๐ victory-core/515 Bugfix for ARIA title and desc. Now both have unique IDs.
- ๐ victory-core/262 Consistent widths for polar bars. This change may require style adjustments to maintain visual continuity
VictoryChart
- victory-chart/482 Add
minBubbleSize
prop toVictoryScatter
- ๐ victory-chart/484 Remove inappropriate interpolation options for
VictoryArea
andVictoryLine
- victory-chart/487 Fix a bug in
VictoryPolarAxis
domain calculation
-
v0.21.0 Changes
June 06, 2017- victory-core/240 Polar Charts
- victory-chart/466 Polar Charts
- ๐ victory-chart/475 Brush and Zoom fixes
- victory-chart/476 Zoom Improvements
๐ฅ Breaking Changes
- โ Removes default bar width from themes
- ๐ Changes how default bar widths are calculated
- ๐ Changes render methods for
Area
,Bar
andCurve
primitives (Breaking change forvictory-native
and others extending primitives) - ๐ Changes function signatures for
Selection.getDomainCoordinates
andSelection.getDataCoordinates
(Breaking change forvictory-native
)
Overview
- ๐ Supports polar charts by adding the
polar
prop to charts. - ๐ Polar charts are supported for
VictoryArea
,VictoryChart
,VictoryGroup
,VictoryLine
,VictoryScatter
VictoryStack
andVictoryVoronoi
- ๐ Polar charts are supported for
VictoryBar
, but horizontal (radial) bars are not yet supported - Polar charts work with
VictoryVoronoiContainer
- ๐ Polar charts work with
VictorySelectionContainer
, but the dimension prop is not supported for polar selections - Polar charts work with
VictoryZoomContainer
, but zooming is limited to centered radial zooming. Panning has no effect. - 0๏ธโฃ Polar-specific default animations for
VictoryLine
andVictoryArea
- ๐ horizontal polar charts are not yet supported
VictoryCandlestick
andVictoryErrorBar
do not yet work with polar chartsVictoryCursorContainer
does not yet work with polar chartsVictoryBrushContainer
does not work with polar chartsVictoryZoomContainer
has limitations for polar charts
Planned additional work
- ๐ Support for radial bars
- ๐ Support for spider charts (i.e. linear grid lines rather than arcs on polar charts)
- ๐ Support separate theming for polar charts (at least axes)
- ๐ Support for a polar version of
VictoryCursorContainer
- Minimal support for polar versions of
VictoryCandleStick
andVictoryErrorBar
(Elements will be correctly positioned and angled, but path elements will not be altered to reflect curvature, i.e. candles will still berects
rather than arc paths) - Investigate hollow polar charts
Details
- โ Adds
VictoryPolarAxis
with new props:axisAngle
startAngle
,endAngle
, andlabelPlacement
- โ Adds
polar
,startAngle
,endAngle
, anddefaultPolarAxes
props forVictoryChart
- โ Adds
polar
,origin
, andrange
props to all chart types. - โ Adds
defaultPolarTransitions
static methods toVictoryLine
andVictoryArea
- ๐ Uses
LabelHelpers
to simplify allhelper-methods
- โ Adds a new
Arc
primitive which is used for polar axes and grid lines - โ Adds
polar
andorigin
props to rendered components (primitives,VictoryLabel
,VictoryClipContainer
VictoryContainer
) - ๐ Supports radial areas for
Area
andCurve
. These props have no effect for cartesian charts - โ Adds an
openPath
prop forCurve
. This prop is used to determine whether radial curves should be closed. Curves are closed by default, but when this prop is set to true they will not be. This prop has no effect for cartesian charts - ๐ Supports polar bars in the
Bar
primitive. (Angular bars only, radial bars are not yet supported) - โ Adds a
labelPlacement
prop toVictoryLabel
andVictoryTooltip
. Values are "parallel", "perpendicular", and "vertical". These flags help to appropriately position labels in polar charts. Polar charts will use "parallel" label placement by default. Cartesian charts will only use "'vertical" placement. - โ Adds support for circular clipPath
- โ Adds support for polar animation transitions for continuous chart types. During
onLoad
, all points grow from zero. DuringonEnter
andonExit
new points are added / removed at the location of an adjacent point to keep path interpolation as smooth as possible. This implementation obviates the need for radial clip-path animations for these chart types. before
andafter
callbacks foronLoad
,onEnter
andonExit
are now called withdatum
,index
, anddata
instead of onlydatum
.- โ Adds
LabelHelpers
- โ Adds helper methods for polar charts
-
v0.20.0 Changes
May 24, 2017๐ฅ Breaking Changes -victory-chart/471 Passes the string value of ticks to the
tickFormat
function rather than the associated index. This may be a breaking change for users who are using categorical data and formatting tick values by index๐ New Features -victory-chart/474 Adds support for a y0 accessor so that users can have granular control over the baseline of components like
VictoryArea
-victory-core/246 Adds anitemsPerRow
prop toVictoryLegend
to support automatic legend wrappingMinor Changes -victory-chart/472 Fixes a bug that was causing
VictoryGroup
to override styles on any independentVictoryLabel
children -victory-core/244 Passes missingdatum
andindex
props toFlyout
-victory-chart/250 AuditsshouldComponentUpdate
logic for all primitive components so that changes to optional props likeclassName
will cause components to re-render. -victory-pie/146 Rounds label positions forVictoryPie
-
v0.19.1 Changes
May 12, 2017- victory-chart/469 Adds
VictoryCursorContainer
- victory-core/241 Adds optional
title
andesc
props toVictoryLabel
- victory-core/243 Improvements to
VictoryContainer
- Automatic
overflow: "visible"
for elements rendered inVictoryPortal
(tooltips) VictoryContainer
no longer rendersg
tags (this was causing confusion with evented containers)- Default responsive styles are now
width: "100%"
height: "100%"
(fixes a bug in safari) - Changes the merge order for responsive styles so that
width
andheight
attrs may be overridden
- Automatic
- victory-core/244 adds missing
index
anddatum
props toFlyout
- ๐ victory-core/245 fixes
dy
calculation inVictoryLabel
- victory-chart/469 Adds
-
v0.19.0 Changes
May 02, 2017๐ฅ BREAKING CHANGE
- โก๏ธ Updates to
react@^15.5.0
- ๐ฆ Uses separate
prop-types
package - Projects using Victory must also depend on
prop-types
- โ Removes
VictoryVoronoiTooltip
- โก๏ธ Updates to
-
v0.18.4 Changes
April 04, 2017- ๐ Supports combining container behaviors with the
createContainer
method. - Individual
combineContainerMixins
are also exported. - ๐ For more detail, see victory-chart/453
- ๐ Supports combining container behaviors with the
-
v0.18.3 Changes
March 21, 2017๐ victory-chart/447 Improves performance for container components
-
v0.18.1 Changes
March 14, 2017- ๐ Support multi-repo tooling
-
v0.18.0 Changes
February 27, 2017(VictoryVoronoiContainer)
๐ฅ 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.- 0๏ธโฃ
VictoryBrushContainer
no longer hasdimension="x"
as the default value.
๐ Deprecation Notice ๐
VictoryVoronoi
andVictoryVoronoiTooltip
have been replaced byVictoryVoronoiContainer
and will be deprecated in version 0.20.0VictoryTooltip
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