Skip to content

[Bug] X-Axis labels are too close to each other during month change on weekly interval #17198

Closed as not planned

Description

@IrfanNazand

Version

5.3.1

Link to Minimal Reproduction

https://codesandbox.io/s/dynamic-data-time-axis-forked-sdyeeq?file=/index.js

Steps to Reproduce

  1. Choose Dynamic Data + Time Axis- example from echarts: https://echarts.apache.org/examples/en/editor.html?c=dynamic-data2
  2. Add
dataZoom: {
    start: 95,
    type: "inside",
    throttle: 50
  },
  1. Add
axisLabel: {
      formatter: {
        year: "{yyyy}",
        month: "{dd}-{MMM}",
        day: "{dd}-{MMM}",
        hour: "{HH}:{mm}"
      }
   },

Current Behavior

As displayed below, the interval between each tick is supposed to be one week, but during every month or year change, this resets, making the last tick in the previous month and the new tick in a new month too close to each other.

Screenshot 2022-06-10 100926

Expected Behavior

The x-axis should ignore month changes and keep the same interval between ticks no matter the zoom level.

No response

Activity

  1. Ovilia commented on Jun 10, 2022

    @Ovilia
    Contributor

    Time axis labels should be enhanced.

  2. self-assigned this
    on Jun 10, 2022
  3. added this to the 5.4 milestone on Jun 10, 2022
  4. jiawulin001 commented on Jun 14, 2022

    @jiawulin001
    Member

    Seems to be the same problem as #17023, and I agree that time axis might need to be re-designed.

  5. removed this from the 5.4 milestone on Sep 1, 2022
  6. github-actions commented on Aug 31, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

  7. added
    stale
    on Aug 31, 2024
  8. github-actions commented on Sep 7, 2024

    @github-actions
    Contributor

    This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugstaletopic: axis-time

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions