Skip to content

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

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

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

Metadata

Metadata

Assignees

Labels

bugstaleInactive for a long time. Will be closed in 7 days.topic: axis-time

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions