Commit 48c3fa53 by 李伟康

commit x轴

1 parent 307d43f3
......@@ -35,14 +35,13 @@ export const xAxisConfig = (params) => {
splitNumber: allYear ? 12 : 10,
axisLabel: {
showMaxLabel: true,
formatter: function (value, index) {
let str = ''
if (index > 0) {
str = allYear ? dayjs(value).format('MM月') : dayjs(value).format('MM/DD')
}
return str
formatter: allYear? '{MM}月' :'{MM}/{dd}'
// function (value, index) {
// let str = ''
// 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!