0.1.4 • Published 4 years ago
visual-scene-echarts v0.1.4
React Echarts Component
Echarts component for React
For details about how to use echarts. Please refer to Echarts homepage
Types of charts supported/examples: Echart examples NPM homepage
Installation
npm install --save visual-scene-echarts
Usage
// es6
import ReactEcharts from 'visual-scene-echarts'
// es5
var VisualSceneEcharts = require('visual-scene-echarts')
<VisualSceneEcharts
height={400}
option={{...}}
showLoading={true}
/>
Props Taken:
height (required, number)
height of the chart, unit:
px
option (required, object)
settings for the chart, for details, refer to Echarts option configuration
showLoading (optional, bool, default:
false
)whether to show a spinning loader
onClick (optional, func)
callback when data clicked
onReady (optional, func)
callback when then chart is initialized, the echart instance is passed in
License
MIT