tdcharts

1.0.13 • Public • Published

TDChart

基于EChart组件封装

通过NPM安装使用

npm install tdcharts

API

import TDChart from 'tdcharts'

<TDChart option={option} ref=''/>
    option      配置项、数据(必选)
    
    style       图表容器的样式,默认高宽100%
    
    them        主题    'default'
    
    event       事件    [{eventName: string, query: string||obj, handler: function}, ...]
    
    className   类名
获取 Instance Object     [refs].getInstance()

PropTypes

  option:       PropTypes.object.isRequired,
  style:        PropTypes.object,
  theme:        PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
  event:        PropTypes.oneOfType([PropTypes.array, PropTypes.object]),
  className:    PropTypes.string

Package Sidebar

Install

npm i tdcharts

Weekly Downloads

1

Version

1.0.13

License

ISC

Unpacked Size

8.02 kB

Total Files

3

Last publish

Collaborators

  • kittychen