- Add
background
prop to draw segment's background
- Fix
props.data
types
- Transpile bundled
svg-partial-circle
- Provide custom segment style via
props.data[i].style
ReactMinimalPieChart
extendsReact.Component
instead ofReact.PureComponent
- Improve
paddingAngle
implementation to respect the proportions between rendered slices - Add TypeScript types
- Compile with Babel v7
- Update Storybook demo to v5
- Add
sideEffect
flag
- Replace
export { default } from
syntax not supported by TS
- Add support for labels with props:
label
,labelPosition
andlabelStyle
- Minor internal refactoring
- Fix chart to render
data.title
value as<title>
inside<path>
element
- Support
injectSvg
function property to inject any element into rendered<svg>
element
- Support
data.title
property to render<title>
inside<path>
element
- Add UMD export
- Add segments interaction callbacks:
onClick
,onMouseOver
,onMouseOut
- Add
segmentsStyle
prop - Setup up Prettier
- Prevent initial animation when component is unmounted
- Update
react
/react-dom
peer dependency version to accept versions15
and16
- Make SVG element
display: block
to remove undesired spacing
- Compile with Rollup.js to bundle with a transpiled version of
svg-partial-circle v0.2.0
- Migrate React's prop types to external
prop-types
package - Swap
react-addons-test-utils
withreact-test-renderer
asenzyme
required dependencies
- Enable negative
lengthAngle
to configure clockwise and counterclockwise charts - Add
rx
andry
props to set custom chart center coordinates - Add
ratio
prop - Add
radius
prop - Re-evaluate segments size when
paddingAngle
is > 0 - Make counterclockwise charts by default
- Make a pure component
- Add eslint parsing
- Incorporate
svg-partial-circle
lib
- Fix bad imports
- Initial release