Releases: FormidableLabs/victory
v31.0.1
v31.0.0
(2018-11-10)
- #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 affected.
v30.6.1
v30.6.0
(2018-10-26)
- #1152 Bugfix:
barWidth
functions were not being correctly evaluated - #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
v30.5.1
v30.5.0
- #1135 - Allow closed paths for cartesian and polar
VictoryLine
- #1130 - Adds a
labelPosition
prop toVictoryPie
with optionsstartAngle
,endAngle
andcentroid
(default). Thanks @sikolio! - #1126 - Ensures that
onBrushDomainChangeEnd
is called for dragging and panning actions. Thanks @jeloagnasin!
v30.4.1
v30.4.0
v30.3.1
v30.3.0
- #1088 - Bugfix: don’t ignore angle: 0 for text styles
- #1091 - Fix inconsistent defaultBrushArea behavior. Thanks @bees
- #1093 - Remove trailing whitespace and incorrect zeroes in transform strings
- #1094 - Support direction prop for VictoryLabel and Text primitive
- #1096 - Fix bug in horizontal zooming and panning
- #1101 - Fix arguments in
VictoryVoronoiContainer
label function. Thanks @evsheino