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

Add export property to a created Amchart #87

Open
luyendd0407 opened this issue Nov 13, 2019 · 3 comments
Open

Add export property to a created Amchart #87

luyendd0407 opened this issue Nov 13, 2019 · 3 comments

Comments

@luyendd0407
Copy link

luyendd0407 commented Nov 13, 2019

I want to add export property to an amchart created without this property, or change enabled property from false to true. If I using console can it effect? I tried with this page: https://codepen.io/team/amcharts/pen/cd082ba201f7d7dd6b2d13f8e450debe
I set the predetermine enabled value is false and change it by console: chart.export.enabled = true;
I tried chart.validateData() and chart.validateNow(true,true) and both are not effect.
I ask this because I want to export data from an amchart created on an website and it's export property is undefined.
Sorry for my poor English :)

@xorspark
Copy link
Contributor

The export plugin cannot be toggled on after the chart has been created. You need to recreate the chart with the export plugin enabled.

@luyendd0407
Copy link
Author

The export plugin cannot be toggled on after the chart has been created. You need to recreate the chart with the export plugin enabled.

so can I enable export plugin from a chart in a website? I see their source code contain that plugin but the amchart is not toggled on. That page is: https://moitruongthudo.vn/
image

@xorspark
Copy link
Contributor

xorspark commented Nov 13, 2019

As I said, you have to re-create the chart. I'm not going to go into specifics on enabling the plugin on someone else's chart, but if export isn't enabled, you need to call makeChart with it enabled. The validateData/validateNow methods won't work.

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