# react-svg-piechart **Repository Path**: mirrors_terinjokes/react-svg-piechart ## Basic Information - **Project Name**: react-svg-piechart - **Description**: A pie chart component for React using SVG - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-svg-piechart A lightweight responsive pie chart component for React using only SVG ## Install ```sh npm install --save react-svg-piechart ``` ## Changelog See [changelog](./CHANGELOG.md) ## Usage ### Exemple  ```js import React, { Component } from 'react' import { PieChart } from 'components/piechart' export default class MyComponent extends Component { constructor(props, context) { super(props, context) this.state = { expandedSector: null, } } handleMouseEnterOnSector(sector) { this.setState({ expandedSector: sector }) } handleMouseLeaveFromSector() { this.setState({ expandedSector: null }) } render() { const data = [ { label: 'Facebook', value: 100, color: '#3b5998' }, { label: 'Twitter', value: 60, color: '#00aced' }, { label: 'Google Plus', value: 30, color: '#dd4b39' }, { label: 'Pinterest', value: 20, color: '#cb2027' }, { label: 'Linked In', value: 10, color: '#007bb6' }, ] return (