Socket
Socket
Sign inDemoInstall

react-minimal-pie-chart

Package Overview
Dependencies
6
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

8.4.0

Diff

toomuchdesign
published 8.3.0 •

Changelog

Source

8.3.0

  • Support React 18
toomuchdesign
published 8.2.0 •

Changelog

Source

8.2.0

  • Decrease bundle size of about 2%
toomuchdesign
published 8.1.0 •

Changelog

Source

8.1.0

  • Widen peerDependencies to include React 17
toomuchdesign
published 8.0.1 •

Changelog

Source

8.0.1

Bugfixes

  • Change extractPercentage implementation to address a rounding issue in stroke-dashoffset evaluation (#133)
toomuchdesign
published 8.0.0 •

Changelog

Source

8.0.0

Breaking Changes

  • Chart component exposed as named export instead of default.
  • Minimum react and react-dom peerDependency versions increased to ^16.8.0
  • Minimum typescript version increased to ^3.8.0 (due to import type)
  • label prop works as render prop; drop support for boolean and Element values
  • segmentsShift prop expressed as absolute viewBox units instead of radius' percentage
  • Event handlers signature updated to: (event, segmentIndex) => void
  • rx and ry props replaced by center array prop
  • center and radius props expressed as absolute viewBox units instead of percentage of it
  • prop-types dependency and static PropTypes declarations dropped
  • Dropped support for `data[].style property
  • Replaced extendedData startOffset prop with startAngle
  • injectSVG dropped in favour of native children prop
  • requestAnimationFrame existence check removed
  • Removed Object.assign polyfill

New Features

  • Gzipped size reduced from 2.6kb to 1.9 kb (-27%)
  • segmentsStyle and labelStyle accept both value or function

Bugfixes

  • Default labels vertically aligned with dominant-baseline: central (#149)
toomuchdesign
published 7.3.1 •

Changelog

Source

7.3.1

Bugfixes

  • Fix event handler types expecting wrong event as first argument
  • Fix label prop type declaration when receiving a function (#154)
  • Fix wrong label position when segmentsShift enabled (#155)
toomuchdesign
published 7.3.0 •

Changelog

Source

7.3.0

New Features

  • Allow segmentsShift as function to return undefined

Minor Changes

  • Improve sumValues performance
toomuchdesign
published 7.2.0 •

Changelog

Source

7.2.0

New Features

  • Add segmentsShift prop to move segments radially and render exploded charts
toomuchdesign
published 7.1.0 •

Changelog

Source

7.1.0

New Features

  • Add onBlur, onFocus, onKeyDown callbacks
  • Add segmentsTabIndex to append a tabindex prop to segment paths

Bugfixes

  • Fix regression bug consisting of stroke-dasharray and stroke-dashoffset attributes being evaluated and appended even when there is no animation
234Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc