Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date on the X-axis of LineChart don't match the date of the point #1565

Closed
suu3 opened this issue Jun 11, 2024 · 4 comments
Closed

Date on the X-axis of LineChart don't match the date of the point #1565

suu3 opened this issue Jun 11, 2024 · 4 comments

Comments

@suu3
Copy link

suu3 commented Jun 11, 2024

Bug description

Hello.
There are cases where the date on the X-axis of the LineChart don't match the date of the point, and I am curious why this happens.
This is a codepen example that reproduces the issue. (The date of the point is June 11, but it is plotted after Jun 15.)
https://codepen.io/suu3/pen/LYozybY?editors=0010

@workingbuddy10
Copy link

@suu3 maybe this issue helps you : #1560

@suu3
Copy link
Author

suu3 commented Jun 11, 2024

@suu3 maybe this issue helps you : #1560

Thank you for your help.
But I think my situation seems to be different from that issue.
In my case:

  1. It is strange that the position of the point on June 11 is to the right of the position of June 15 on the x-axis.
  2. Since the two points have 90 days of spacing and the baseInterval is 30 days, I thought the spacing would be just right, but it is not.

@zeroin
Copy link
Collaborator

zeroin commented Jun 11, 2024

I would not recommend to use 30 days base interval, as well, the labels won't be the ones you'd like to see.
As for the label placement, here is a detailed explanation about it:

https://www.amcharts.com/docs/v5/tutorials/location-of-items-on-date-axis-and-date-based-series/

Copy link

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

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

No branches or pull requests

4 participants