import ReactEcharts, { ReactEchartsPropsTypes } from 'echarts-for-react'; import React, { Component } from 'react'; import { GlobalItemProp } from '../../../App'; import { DataProp } from '../../chartFactory'; import { data } from '../../map/quanguoditu/ditu'; import styles from "./index.module.css"; import { option } from './jindutiao.json'; interface Prop { data : DataProp } interface State { } export default class NumberJinDuTiao extends Component { handleData = (remoteData:any,data:GlobalItemProp):ReactEchartsPropsTypes=>{ return {option : option} } renderPie = ()=>{ const {data,remoteData}= this.props.data; return } renderLine = ()=>{ const {data,remoteData}= this.props.data; return } renderByType = ()=>{ const type : boolean = true; if(type){ return this.renderLine() }else{ return this.renderPie() } } render(){ return this.renderByType() } }