儿科患者端
This commit is contained in:
parent
36f4d83ac3
commit
fc7f361661
File diff suppressed because it is too large
Load Diff
@ -229,7 +229,7 @@ Page({
|
|||||||
})
|
})
|
||||||
const standardLower = totalList.map(item => item[0]);
|
const standardLower = totalList.map(item => item[0]);
|
||||||
const standardUpper = totalList.map(item => item[1]);
|
const standardUpper = totalList.map(item => item[1]);
|
||||||
const standardRange = standardUpper.map((up, i) => up - standardLower[i]);
|
// const standardRange = standardUpper.map((up, i) => up - standardLower[i]);
|
||||||
|
|
||||||
const chartComp = this.selectComponent('#mychart-dom-height');
|
const chartComp = this.selectComponent('#mychart-dom-height');
|
||||||
if (chartComp) {
|
if (chartComp) {
|
||||||
@ -256,6 +256,16 @@ Page({
|
|||||||
smooth: true,
|
smooth: true,
|
||||||
data: this.data.heightData
|
data: this.data.heightData
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: '标准上界',
|
||||||
|
type: 'line',
|
||||||
|
symbol: 'none',
|
||||||
|
data: standardUpper,
|
||||||
|
lineStyle: { opacity: 0 },
|
||||||
|
stack: '标准范围',
|
||||||
|
areaStyle: { opacity: 0 },
|
||||||
|
tooltip: { show: true }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '标准下界',
|
name: '标准下界',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
@ -263,18 +273,8 @@ Page({
|
|||||||
data: standardLower,
|
data: standardLower,
|
||||||
lineStyle: { opacity: 0 },
|
lineStyle: { opacity: 0 },
|
||||||
stack: '标准范围',
|
stack: '标准范围',
|
||||||
areaStyle: { opacity: 0 },
|
|
||||||
tooltip: { show: false }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '标准范围',
|
|
||||||
type: 'line',
|
|
||||||
symbol: 'none',
|
|
||||||
data: standardRange,
|
|
||||||
lineStyle: { opacity: 0 },
|
|
||||||
stack: '标准范围',
|
|
||||||
areaStyle: { color: 'rgba(135,206,250,0.3)' },
|
areaStyle: { color: 'rgba(135,206,250,0.3)' },
|
||||||
tooltip: { show: false }
|
tooltip: { show: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
@ -314,7 +314,7 @@ Page({
|
|||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
formatter: function (params) {
|
formatter: function (params) {
|
||||||
const param = params[0];
|
const param = params[0];
|
||||||
return `${param.axisValue}\n${param.seriesName}: ${param.value} cm`;
|
return `${param.axisValue}\n${param.seriesName}: ${param.value} kg`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
xAxis: { type: 'category', boundaryGap: false, data: this.data.xAxis },
|
xAxis: { type: 'category', boundaryGap: false, data: this.data.xAxis },
|
||||||
@ -327,24 +327,24 @@ Page({
|
|||||||
data: this.data.weightData
|
data: this.data.weightData
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '标准下界',
|
name: '标准上界',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
symbol: 'none',
|
symbol: 'none',
|
||||||
data: standardLower,
|
data: standardUpper,
|
||||||
lineStyle: { opacity: 0 },
|
lineStyle: { opacity: 0 },
|
||||||
stack: '标准范围',
|
stack: '标准范围',
|
||||||
areaStyle: { opacity: 0 },
|
areaStyle: { opacity: 0 },
|
||||||
tooltip: { show: false }
|
tooltip: { show: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '标准范围',
|
name: '标准下界',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
symbol: 'none',
|
symbol: 'none',
|
||||||
data: standardRange,
|
data: standardUpper,
|
||||||
lineStyle: { opacity: 0 },
|
lineStyle: { opacity: 0 },
|
||||||
stack: '标准范围',
|
stack: '标准范围',
|
||||||
areaStyle: { color: 'rgba(135,206,250,0.3)' },
|
areaStyle: { color: 'rgba(135,206,250,0.3)' },
|
||||||
tooltip: { show: false }
|
tooltip: { show: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user