| 1234567891011121314151617181920212223242526 |
- import React from 'react';
- import Echarts from 'echarts-for-react';
- class EchartsView extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- option: props.option
- }
- }
- componentDidMount() {
- }
- render() {
- return (
- <Echarts ref={(e) => { this.echarts_react = e; }}
- option={this.state.option}
- className='rc-echarts'
- style={{height: '100%'}}
- />
- )
- }
- }
- export default EchartsView;
|