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

Loading the chart via Ajax, causes DataLoader to run multiple times. #16

Closed
cxevan7 opened this issue Sep 11, 2016 · 3 comments
Closed

Comments

@cxevan7
Copy link

cxevan7 commented Sep 11, 2016

So I have a page that loads the page the chart displays on via Ajax, it works fine, the dataLoader does it's job, but I notice if I load another page after that with another dataLoader, it now adds another ajax call, so if I look at 5 different charts, by the time I look at the 5th chart it has 5 unique ajax requests being made by the dataLoader, is there something that can be done to fix this?

@martynasma
Copy link
Collaborator

Hey,

Sorry, this one slipped through the cracks. GitHub is not being monitored by our support staff.

Would you rather load all of the data for all of the charts on the web page at once?

In that case, you might want to load the data using standalone functions from Data Loader, store it in some variable, then use it when creating a new chart instance.

Here's some more info on how to do so:

https://github.com/amcharts/dataloader#using-data-loaders-standalone-functions

@cxevan7
Copy link
Author

cxevan7 commented Dec 16, 2016 via email

@martynasma
Copy link
Collaborator

Gotcha. Thanks.

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

No branches or pull requests

2 participants