Commit de9e8dee by 李伟康

commit 测试

1 parent 48c3fa53
......@@ -32,16 +32,15 @@ export const xAxisConfig = (params) => {
splitLine: {
show: false
},
splitNumber: allYear ? 12 : 10,
splitNumber: allYear ? 11 : 10,
axisLabel: {
showMaxLabel: true,
formatter: allYear? '{MM}月' :'{MM}/{dd}'
// function (value, index) {
// let str = ''
// str = allYear ? dayjs(value).format('MM月') : dayjs(value).format('MM/DD')
// return str
formatter: function (value, index) {
let str = ''
str = allYear ? `${dayjs(value).format('MM月')}, ${index}, ${value}` : 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!