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

Keep draw after reload page #1805

Open
paulodfavero opened this issue Dec 14, 2024 · 1 comment
Open

Keep draw after reload page #1805

paulodfavero opened this issue Dec 14, 2024 · 1 comment
Labels

Comments

@paulodfavero
Copy link

How can I keep draw after reload page?
I saw that exist an object for each draw. Is it possible to use this data to plot in the chart again?

image
@martynasma
Copy link
Collaborator

Yes, you can either use drawingsupdated event to grab current serialized drawings, and then restore them when needed.

Docs:
https://www.amcharts.com/docs/v5/charts/stock/serializing-indicators-annotations/

Or you can instruct your users to enable autosaving of drawings via settings or data save controls:

https://www.amcharts.com/docs/v5/charts/stock/toolbar/settings-control/#Auto_saving_feature
https://www.amcharts.com/docs/v5/charts/stock/toolbar/data-save-control/

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