@tntv/charts

1.0.1 • Public • Published

基于echarts封装的React图表组件库

安装

npm install @tntv/charts --save

如何使用

import { Line } from "@tntv/charts";

ReactDOM.render(
    <Line />,
    mountNode
);

支持按需加载(推荐)

安装babel插件

npm install babel-plugin-tnt --save-dev

.babelrc中添加如下配置即可

"plugins": [
    [
      "babel-plugin-tnt",
      {
        "library": ["@tntv/charts"]
      }
    ],
]

API

Package Sidebar

Install

npm i @tntv/charts

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

250 kB

Total Files

24

Last publish

Collaborators

  • ezios
  • td-tnt
  • bruceliu68
  • zhouzefei
  • xiaofei.wang
  • mizy