儿科医生端
This commit is contained in:
parent
40c46d5dcc
commit
9da15d0c7d
File diff suppressed because it is too large
Load Diff
@ -164,7 +164,7 @@ Page({
|
||||
|
||||
const standardLower = totalList.map(item => item[0]);
|
||||
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');
|
||||
if (chartComp) {
|
||||
@ -191,6 +191,16 @@ Page({
|
||||
smooth: true,
|
||||
data: this.data.heightData
|
||||
},
|
||||
{
|
||||
name: '标准上界',
|
||||
type: 'line',
|
||||
symbol: 'none',
|
||||
data: standardUpper,
|
||||
lineStyle: { opacity: 0 },
|
||||
stack: '标准范围',
|
||||
areaStyle: { opacity: 0 },
|
||||
tooltip: { show: true }
|
||||
},
|
||||
{
|
||||
name: '标准下界',
|
||||
type: 'line',
|
||||
@ -198,18 +208,8 @@ Page({
|
||||
data: standardLower,
|
||||
lineStyle: { opacity: 0 },
|
||||
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)' },
|
||||
tooltip: { show: false }
|
||||
tooltip: { show: true }
|
||||
}
|
||||
]
|
||||
});
|
||||
@ -233,7 +233,7 @@ Page({
|
||||
})
|
||||
const standardLower = totalList.map(item => item[0]);
|
||||
const standardUpper = totalList.map(item => item[1]);
|
||||
const standardRange = totalList.map((up, i) => up - standardLower[i]);
|
||||
// const standardRange = totalList.map((up, i) => up - standardLower[i]);
|
||||
|
||||
const chartComp = this.selectComponent('#mychart-dom-weight');
|
||||
if (chartComp) {
|
||||
@ -248,7 +248,7 @@ Page({
|
||||
trigger: 'axis',
|
||||
formatter: function (params) {
|
||||
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 },
|
||||
@ -260,6 +260,16 @@ Page({
|
||||
smooth: true,
|
||||
data: this.data.weightData
|
||||
},
|
||||
{
|
||||
name: '标准上界',
|
||||
type: 'line',
|
||||
symbol: 'none',
|
||||
data: standardUpper,
|
||||
lineStyle: { opacity: 0 },
|
||||
stack: '标准范围',
|
||||
areaStyle: { opacity: 0 },
|
||||
tooltip: { show: true }
|
||||
},
|
||||
{
|
||||
name: '标准下界',
|
||||
type: 'line',
|
||||
@ -267,18 +277,8 @@ Page({
|
||||
data: standardLower,
|
||||
lineStyle: { opacity: 0 },
|
||||
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)' },
|
||||
tooltip: { show: false }
|
||||
tooltip: { show: true }
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user