|
@@ -359,6 +359,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
return ret
|
|
|
+ },
|
|
|
+ // ios里echart的x轴数据名必须这么设置……
|
|
|
+ echartFontSize() {
|
|
|
+ return window.innerHeight * 0.025276 * 0.7 + 'px'
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -424,7 +428,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: '0.7rem',
|
|
|
+ fontSize: this.echartFontSize,
|
|
|
}
|
|
|
},
|
|
|
yAxis: {
|
|
@@ -459,7 +463,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: '0.7rem',
|
|
|
+ fontSize: this.echartFontSize,
|
|
|
}
|
|
|
},
|
|
|
yAxis: {
|
|
@@ -494,7 +498,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: '0.7rem',
|
|
|
+ fontSize: this.echartFontSize,
|
|
|
}
|
|
|
},
|
|
|
yAxis: {
|
|
@@ -529,7 +533,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: '0.7rem',
|
|
|
+ fontSize: this.echartFontSize,
|
|
|
}
|
|
|
},
|
|
|
yAxis: {
|
|
@@ -564,7 +568,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: '0.7rem',
|
|
|
+ fontSize: this.echartFontSize,
|
|
|
}
|
|
|
},
|
|
|
yAxis: {
|
|
@@ -599,7 +603,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: '0.7rem',
|
|
|
+ fontSize: this.echartFontSize,
|
|
|
}
|
|
|
},
|
|
|
yAxis: {
|