Commit 48c3fa53 by 李伟康

commit x轴

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