# beyond-echarts

> 项目中有用到一些常用图表库没有的图表,就此收集下,现在有圆角环形图

Latest version **1.0.3** (published 2020-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install beyond-echarts
pnpm add beyond-echarts
yarn add beyond-echarts
bun add beyond-echarts
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-08-31 |
| First published | 2020-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | haorooms、brucewang |
| Maintainers | brucewang88 |
| Keywords | 圆角环形图, 环形图 |

## Links

- npm: https://www.npmjs.com/package/beyond-echarts
- Repository: https://github.com/BruceWang99/cricleRoundring
- Homepage: https://github.com/BruceWang99/cricleRoundring#readme
- Issues: https://github.com/BruceWang99/cricleRoundring/issues
- npm.io page: https://npm.io/package/beyond-echarts

## Recent versions

- 1.0.3 (latest) — 2020-08-31
- 1.0.2 — 2020-08-28
- 1.0.1 — 2020-08-28
- 1.0.0 — 2020-08-28

## README

## 前言



项目中有用到一些常用图表库没有的图表,就此收集下,现在只有圆角环形图



## 使用方法

### 安装

```

npm i beyond-echarts

```

### 页面使用1

```

import Charts from "beyond-echarts";



const container = document.querySelector('#pie');

charts.init(container);

charts.setOption(option);

```

### 页面使用2

```

<script type="text/javascript"  src="../dist/beyond-echarts.js"></script>



<script type="text/javascript">

​    const container = document.querySelector('#pie');

​    beyondEcharts.init(container);

​    beyondEcharts.setOption(option1);

</script>
```



## 配置 (和echarts一样)

```
const option = {

​                        series:[ {

​                            type: 'pie',

​                            capType: 'round',

​                            radius: ['65%', '35%'],

​                            data: [

​                                {

​                                    value: 400, 

​                                    name: '直接访问',

​                                    itemStyle: {

​                                        color: {

​                                            type: 'linear',

​                                            x: 0,

​                                            y: 0,

​                                            x2: 0,

​                                            y2: 1,

​                                            colorStops: [{

​                                                offset: 0, color: '#FFCE35' // 0% 处的颜色

​                                            }, {

​                                                offset: 1, color: '#FFA219' // 100% 处的颜色

​                                            }],

​                                            global: false // 缺省为 false

​                                        }

​                                    }

​                                },

​                                {

​                                    value: 800, 

​                                    name: '直接访问',

​                                    itemStyle: {

​                                        color: {

​                                            type: 'linear',

​                                            x: 0,

​                                            y: 0,

​                                            x2: 0,

​                                            y2: 1,

​                                            colorStops: [{

​                                                offset: 0, color: '#29C38C' // 0% 处的颜色

​                                            }, {

​                                                offset: 1, color: '#0DB880' // 100% 处的颜色

​                                            }],

​                                            global: false // 缺省为 false

​                                        }

​                                    }

​                                },

​                                {

​                                    value: 405, 

​                                    name: '直接访问',

​                                    itemStyle: {

​                                        color: {

​                                            type: 'linear',

​                                            x: 0,

​                                            y: 0,

​                                            x2: 0,

​                                            y2: 1,

​                                            colorStops: [{

​                                                offset: 0, color: '#F74B53' // 0% 处的颜色

​                                            }, {

​                                                offset: 1, color: '#FB828B' // 100% 处的颜色

​                                            }],

​                                            global: false // 缺省为 false

​                                        }

​                                    }

​                                },

​                            ]

​                        }]

​                } 
```

[echarts Api文档](https://echarts.apache.org/en/api.html)        

## demo 

https://brucewang99.github.io/beyond-echarts/demo/index.html

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