@@ -207,7 +207,6 @@ export default {
name: '学时',
nameTextStyle: { fontSize: 11, color: '#aaa', padding: [0, 30, 0, 0] },
max: (value) => {
- // value.max 是三个 series 中的最大值,向上取整到 50 的倍数
return Math.ceil(value.max / 50) * 50
},
interval: 50,
@@ -206,7 +206,9 @@ export default {
type: 'value',
- max: 350,
+ max: (value) => {
+ return Math.ceil(value.max / 50) * 50
+ },
splitLine: { lineStyle: { color: '#f0f0f0' } },
axisLabel: { fontSize: 11, color: '#aaa' },