react-minimal-pie-chart
Advanced tools
Changelog
8.0.1
extractPercentage
implementation to address a rounding issue in stroke-dashoffset
evaluation (#133)Changelog
8.0.0
react
and react-dom
peerDependency versions increased to ^16.8.0
typescript
version increased to ^3.8.0
(due to import type
)label
prop works as render prop; drop support for boolean
and Element valuessegmentsShift
prop expressed as absolute viewBox
units instead of radius' percentage(event, segmentIndex) => void
rx
and ry
props replaced by center
array propcenter
and radius
props expressed as absolute viewBox
units instead of percentage of itprop-types
dependency and static PropTypes
declarations droppedinjectSVG
dropped in favour of native children propObject.assign
polyfillsegmentsStyle
and labelStyle
accept both value or functiondominant-baseline: central
(#149)Changelog
7.3.1
label
prop type declaration when receiving a function (#154)Changelog
7.3.0
segmentsShift
as function to return undefined
sumValues
performanceChangelog
7.2.0
segmentsShift
prop to move segments radially and render exploded chartsChangelog
7.1.0
onBlur
, onFocus
, onKeyDown
callbackssegmentsTabIndex
to append a tabindex
prop to segment pathsstroke-dasharray
and stroke-dashoffset
attributes being evaluated and appended even when there is no animation