# react-canvas-chart

> react canvas chart

Latest version **0.1.2** (published 2017-11-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-canvas-chart
pnpm add react-canvas-chart
yarn add react-canvas-chart
bun add react-canvas-chart
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-11-13 |
| First published | 2017-11-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | xuallen20@gmail.com |
| Maintainers | xuallen20 |
| Keywords | canvas, chart, react |

## Links

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

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2017-11-13
- 0.1.1 — 2017-11-13
- 0.1.0 — 2017-11-13
- 0.0.9 — 2017-11-13
- 0.0.8 — 2017-11-13
- 0.0.7 — 2017-11-13
- 0.0.6 — 2017-11-13
- 0.0.5 — 2017-11-12
- 0.0.4 — 2017-11-12
- 0.0.3 — 2017-11-12
- 0.0.2 — 2017-11-12
- 0.0.1 — 2017-11-12

## README

## react-canvas-chart
基于react、canvas的数据可视化组件库

### Install
```bash
npm install react-canvas-chart
```

### 组件列表
| 组件        | 说明           | props  | 
| ------------- |-------------| -----|
| CircleChart      | 环形数据显示，可用于显示百分比等 | options、height、width |
| Clock      | canvas时钟 | color、height、width |


### 默认参数
#### CircleChart
```javascript
options = {
    value: 80,
    maxValue: 100,
    outsideCircleWidth: 3, 
    insideCircleWidth: 28,
    padding: 20,
    tickNumber: 100,
    circleDistance: 5,
    colors: ['#1790DC', '#B78BEE'],
    title: '百分比(%)',
    titleSize: 14,
    valueSize: 70,
    animation: true
}

width=250
height=250
```
### How to use
#### CircleChart

```javascript
import React, { Component } from 'react';
import { CircleChart } from 'react-canvas-chart';

class Page extends Component {
    render() {
        return <CircleChart options={{value: 50, colors: ['#FF003A', '#FFA150']}} />;
    }
}

export default Page;
```

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