| | |
| | | } |
| | | |
| | | } |
| | | const huatu=(series: { name: string; type: string; stack: string; data: any; }[],xAxis: any[],legendData:any[])=>{ |
| | | const huatu=(series: { name: string; type: string; stack: string; data: any; }[],xAxis: any[],legendData:any[],textTitle:string)=>{ |
| | | const myChart = echarts.init(proxy.$refs.myChartRef); |
| | | const option = { |
| | | title: { |
| | | text: '体重趋势图', |
| | | text: textTitle,//'体重趋势图', |
| | | borderRadius:5, |
| | | backgroundColor:"#409EFF", |
| | | left:20, |
| | |
| | | series[2].data.push(e.干体重) |
| | | }) |
| | | const legendData=['透前体重', '透后体重', '干体重'] |
| | | huatu(series,xAxisData,legendData) |
| | | huatu(series,xAxisData,legendData,'体重趋势图') |
| | | } |
| | | }) |
| | | } |
| | |
| | | series[3].data.push(e.透后舒张压) |
| | | }) |
| | | const legendData=['透前伸缩压', '透前舒张压', '透后伸缩压','透后舒张压'] |
| | | huatu(series,xAxisData,legendData) |
| | | huatu(series,xAxisData,legendData,'血压趋势图') |
| | | } |
| | | }) |
| | | } |