apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.54k stars 19.61k forks source link

[Bug] xAxis Redundant Date Marking #19987

Open ggnu11 opened 5 months ago

ggnu11 commented 5 months ago

Version

3.0.2

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/echart-g53p5m?file=%2Fsrc%2FYearChart.tsx%3A41%2C37

Steps to Reproduce

How can I display xAxis without duplicating yy/mm when I receive Sun Jan 01 2023 00:00 GMT+0900 data? Also, if yy is 22, can 212223 be displayed by automatically calculating back and forth yy?

Current Behavior

Mon Jan 01 2024 00:00:00 GMT+0900 When the date data is displayed in xAxis as yy/mm or yy only, if yy/mm, it is displayed as a duplicate date, and if it is displayed as yy, it is displayed as 22 2323 rather than 22 23 24

Expected Behavior

When it's shown as yy/MM, it seems that duplicated yy/MM is shown due to dd after MM I don't know if it's yy

Environment

- OS:
- Browser: chrome
- Framework: react-typescript

Any additional comments?

No response

echarts-bot[bot] commented 5 months ago

I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue.

Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.

A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.

Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.