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

zoomToDates cuts off data #3914

Open
andrewfmbs opened this issue Nov 30, 2021 · 3 comments
Open

zoomToDates cuts off data #3914

andrewfmbs opened this issue Nov 30, 2021 · 3 comments
Labels

Comments

@andrewfmbs
Copy link

I am having an issue when using dateAxis.zoomToDates() where the some of the data is cut off on the chart.

I have recreated the issue on jsfiddle. Click the "Click Me" button and you can see the left side of the chart is missing some data points. After this happens, if you move the scrollbar at all then the issue resolves itself.

We are launching our upgraded platform with amcharts 4 (instead of 3) this weekend and are desperate for a fix / workaround.

@martynasma martynasma added the bug label Dec 1, 2021
@martynasma
Copy link
Collaborator

Proper fix might take longer than coming few days.

In the interim, you may use the following workaround:

const changeDate = () => {
  dateAxis.zoomToDates(new Date("10/10/2021"), new Date("11/10/2021"));
  scrollbarX.start = scrollbarX.start + 0.0001;
}

@andrewfmbs
Copy link
Author

Thanks for the tip! That didn't seem to work great though...little buggy, but I found using scrollbarX.dispatchRangeChange(); worked well enough as a temp solution for me.

How will I know when a proper bug fix is up?

Thanks for the quick response!

@martynasma
Copy link
Collaborator

How will I know when a proper bug fix is up?

I'll post a follow up here. You should get a notification.

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

No branches or pull requests

2 participants