You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is not possible to define radius, innerRadius or labelRadius for individual pie slices because the pathFunction that is provided to each slice already has those values pre-defined. Instead, we should provide a partially applied path function that gets calculated for each slice. We should also let radius, innerRadius and labelRadius be defined as functions of data. New radius, innerRadius props should be added to Slice, and labelRadius should be added to VictoryLabel
The text was updated successfully, but these errors were encountered:
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.
Currently it is not possible to define
radius
,innerRadius
orlabelRadius
for individual pie slices because thepathFunction
that is provided to each slice already has those values pre-defined. Instead, we should provide a partially applied path function that gets calculated for each slice. We should also letradius
,innerRadius
andlabelRadius
be defined as functions of data. Newradius
,innerRadius
props should be added toSlice
, andlabelRadius
should be added toVictoryLabel
The text was updated successfully, but these errors were encountered: