Commit 307d43f3 by 李伟康

commit X轴

1 parent c5cddd03
......@@ -32,11 +32,16 @@ export const xAxisConfig = (params) => {
splitLine: {
show: false
},
splitNumber: allYear ? 11 : 10,
splitNumber: allYear ? 12 : 10,
axisLabel: {
showMaxLabel: true,
formatter: function (value, index) {
return allYear ? dayjs(value).format('MM月') : dayjs(value).format('MM/DD')
let str = ''
if (index > 0) {
str = allYear ? dayjs(value).format('MM月') : dayjs(value).format('MM/DD')
}
return str
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!