...
|
...
|
@@ -142,6 +142,49 @@ class GradeDetailPage extends Page { |
|
|
let whichLine = Number(event.event.target.anid.split('_')[1]);
|
|
|
|
|
|
tapData = this.graphData.seriesData[whichLine];
|
|
|
this.graphData.seriesData.map((serie, index) => {
|
|
|
if (index === whichLine) {
|
|
|
serie.symbolSize = 16;
|
|
|
} else {
|
|
|
serie.symbolSize = 8;
|
|
|
}
|
|
|
return serie;
|
|
|
});
|
|
|
this.graphData.xAxisData.map((xAxis, index) => {
|
|
|
if (index === whichLine) {
|
|
|
xAxis.value = xAxis.value.replace(/([\d+])月/, '$1 月');
|
|
|
xAxis.textStyle = {
|
|
|
color: '#000',
|
|
|
fontSize: 18,
|
|
|
fontWeight: 400,
|
|
|
padding: [3, 2, 2, 5],
|
|
|
backgroundColor: {
|
|
|
image: '//cdn.yoho.cn/grade/yuefen@2x.png'
|
|
|
}
|
|
|
};
|
|
|
} else {
|
|
|
xAxis.value = xAxis.value.replace(' 月', '月');
|
|
|
xAxis.textStyle = {
|
|
|
color: '#fff',
|
|
|
fontSize: 14,
|
|
|
fontWeight: 400,
|
|
|
padding: [4, 0, 0, 0],
|
|
|
backgroundColor: {
|
|
|
image: ''
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
return xAxis;
|
|
|
});
|
|
|
|
|
|
this.eGradeGraph.setOption({
|
|
|
series: {
|
|
|
data: this.graphData.seriesData
|
|
|
},
|
|
|
xAxis: {
|
|
|
data: this.graphData.xAxisData
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
tapData = event.data;
|
|
|
}
|
...
|
...
|
|