UNPKG

tdcharts

Version:
38 lines (25 loc) 832 B
### 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 ```