# @twp0217/react-echarts

> Apache ECharts component for React

Latest version **5.2.3** (published 2022-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @twp0217/react-echarts
pnpm add @twp0217/react-echarts
yarn add @twp0217/react-echarts
bun add @twp0217/react-echarts
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.2.3 |
| Published | 2022-08-03 |
| First published | 2021-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 29.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | twp0217 |
| Maintainers | twp0217 |
| Keywords | react, echarts, react-component, react-echarts |

## Links

- npm: https://www.npmjs.com/package/@twp0217/react-echarts
- Repository: https://github.com/twp0217/react-echarts
- Homepage: https://github.com/twp0217/react-echarts#readme
- Issues: https://github.com/twp0217/react-echarts/issues
- npm.io page: https://npm.io/package/@twp0217/react-echarts

## Dependencies (2)

- [@juggle/resize-observer](https://npm.io/package/@juggle/resize-observer.md) ^3.3.1
- [@twp0217/react-echarts-core](https://npm.io/package/@twp0217/react-echarts-core.md) ^5.2.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.2.3 (latest) — 2022-08-03
- 5.2.2 — 2021-11-03
- 5.2.1 — 2021-10-28
- 5.2.0 — 2021-10-27
- 5.1.1 — 2021-09-29
- 5.1.0 — 2021-09-27
- 5.0.0 — 2021-09-25

## README

# react-echarts

Apache ECharts component for React（基于 React 的 Apache ECharts 组件）

## 安装

```bash
npm install echarts @twp0217/react-echarts --save
```

## 使用

```typescript
import React from 'react';
import ECharts, { EChartsOption } from '@twp0217/react-echarts';

export default () => {
  const option: EChartsOption = {
    title: {
      text: 'ECharts 入门示例',
    },
    tooltip: {},
    legend: {
      data: ['销量'],
    },
    xAxis: {
      data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'],
    },
    yAxis: {},
    series: [
      {
        name: '销量',
        type: 'bar',
        data: [5, 20, 36, 10, 10, 20],
      },
    ],
  };

  return <ECharts option={option} />;
};
```

## API

### EChartsProps

> 参考[`EChartsCoreProps`](https://github.com/twp0217/react-echarts/tree/main/packages/echarts-core#api)，差异 API 如下：

| 名称        | 说明             | 类型        | 默认值 |
| ----------- | ---------------- | ----------- | ------ |
| ~~echarts~~ | ~~echarts 模块~~ | ~~ECharts~~ | ~~-~~  |

## 支持

- 如果项目对你有帮助，请点颗星星:star:，谢谢。
- 如果你对项目有想法、问题、BUG，欢迎讨论。

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