visual-scene-echarts
v0.1.4
Published
A chart component base on Echarts, more frindly
Maintainers
Readme
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-echartsUsage
// 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:
pxoption (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
