# react-cropped-doughnut-chart

> A cropped doughnutchart, with customizable image and text on center

Latest version **1.1.1** (published 2022-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-cropped-doughnut-chart
pnpm add react-cropped-doughnut-chart
yarn add react-cropped-doughnut-chart
bun add react-cropped-doughnut-chart
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-11-12 |
| First published | 2022-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 140.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | muthuishere |
| Maintainers | muthuishere |

## Links

- npm: https://www.npmjs.com/package/react-cropped-doughnut-chart
- Repository: https://github.com/muthuishere/react-cropped-doughnut-chart
- Homepage: https://github.com/muthuishere/react-cropped-doughnut-chart#readme
- Issues: https://github.com/muthuishere/react-cropped-doughnut-chart/issues
- npm.io page: https://npm.io/package/react-cropped-doughnut-chart

## Recent versions

- 1.1.1 (latest) — 2022-11-12
- 1.1.0 — 2022-11-12
- 1.0.1 — 2022-11-12

## README

# react-cropped-doughnut-chart

> A cropped doughnutchart, with customizable image and text on center,No additional dependencies


[![NPM](https://img.shields.io/npm/v/react-cropped-doughnut-chart.svg)](https://www.npmjs.com/package/react-cropped-doughnut-chart) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)



## Demo
[https://muthuishere.github.io/react-cropped-doughnut-chart/](https://muthuishere.github.io/react-cropped-doughnut-chart/)


![a](https://raw.githubusercontent.com/muthuishere/react-cropped-doughnut-chart/main/img.png)


## Install

```bash
npm install --save react-cropped-doughnut-chart
```


## Usage

```jsx
import React from 'react'

import { HorseShoeChart } from 'react-cropped-doughnut-chart'
import 'react-cropped-doughnut-chart/dist/index.css'



const App = () => {


  const defaultItems =[
    { value:24,color:"red",labelColor:"white",label:"High"},
    { value:227,color:"yellow",labelColor:"white",label:"Medium"},
    { value:49,color:"#00EE00",label:"Low"},
  ]

  const defaultOptions = {
    radius: 200,
    title:"Issues",
    titleColor:"#FF0000",
    thicknessSize:"S",
    gapSize:"XL",
    labelSize:12,
    showAnimation: false,
    animationDurationInSeconds:5,
    labelColor:"white",
    backgroundColor:"white",
    imageUrl:"https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Noun_project_exclamation_icon_620383.svg/512px-Noun_project_exclamation_icon_620383.svg.png?20180327224854"
  }


  return <div className="container">
    <HorseShoeChart items={defaultItems} options={defaultOptions} />
  </div>
}




```

## License

MIT © [muthuishere](https://github.com/muthuishere)

---
_Source: https://npm.io/package/react-cropped-doughnut-chart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
