|
@@ -600,10 +600,6 @@ export default {
|
|
|
);
|
|
|
const s_yItem = {
|
|
|
labels: {
|
|
|
- formatter: function () {
|
|
|
- let val = this.value;
|
|
|
- return index !== 0 ? '' : val;
|
|
|
- },
|
|
|
align: 'center',
|
|
|
},
|
|
|
title: {
|
|
@@ -617,6 +613,7 @@ export default {
|
|
|
max: Number(this.chartInfo.MaxValue),
|
|
|
min: Number(this.chartInfo.MinValue),
|
|
|
...seasonOptions.yAxis,
|
|
|
+ visible: index===0
|
|
|
};
|
|
|
seasonData.push(serie_item);
|
|
|
seasonYdata.push(s_yItem);
|
|
@@ -644,10 +641,6 @@ export default {
|
|
|
const index = filterArr.findIndex((item) => item.Year === j.Year);
|
|
|
const s_yItem = {
|
|
|
labels: {
|
|
|
- formatter: function () {
|
|
|
- let val = this.value;
|
|
|
- return index !== 0 ? '' : val;
|
|
|
- },
|
|
|
align: 'center',
|
|
|
},
|
|
|
title: {
|
|
@@ -661,6 +654,7 @@ export default {
|
|
|
max: Number(this.chartInfo.MaxValue),
|
|
|
min: Number(this.chartInfo.MinValue),
|
|
|
...seasonOptions.yAxis,
|
|
|
+ visible: index===0
|
|
|
};
|
|
|
seasonData.push(serie_item);
|
|
|
seasonYdata.push(s_yItem);
|