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

Exporting of PNG,jpg,pdf,xlsx etc not working in angular 7 #101

Open
SupriyaSudhindra opened this issue Apr 29, 2019 · 5 comments
Open

Exporting of PNG,jpg,pdf,xlsx etc not working in angular 7 #101

SupriyaSudhindra opened this issue Apr 29, 2019 · 5 comments

Comments

@SupriyaSudhindra
Copy link

SupriyaSudhindra commented Apr 29, 2019

I am using the below code....
import { AmChartsService, AmChart } from "@amcharts/amcharts3-angular";

constructor(private AmCharts: AmChartsService){}

this.chart = this.AmCharts.makeChart("chartdiv_ConversationVsUsers", { "type": "serial", "addClassNames": true, "theme": "none", "legend": { "position": "top", "align": "center", "equalWidths": false, "valueAlign": "left" }, "balloon": { "adjustBorderColor": false, "horizontalPadding": 10, "verticalPadding": 8, "color": "#ffffff" }, "dataProvider": data, "valueAxes": [{ "axisAlpha": 0, "gridAlpha": 0.05, "position": "left", "title": "Total Count" }], "chartCursor": { "cursorAlpha": 0, "zoomable": false }, "startDuration": 1, "graphs": [{ "lineColor": "#81D0FF", "id": "g1", "fillAlphas": 0.4, "title": "Conversations", "valueField": "conversations", "balloonText": "<div style='margin:5px; font-size:19px;'>Conversations:<b>[[value]]</b></div>" }, { "id": "graph2", "balloonText": "<span style='font-size:12px;'>[[title]] :<span style='font-size:20px;'>[[value]]", "bullet": "round", "lineThickness": 3, "bulletSize": 7, "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", "useLineColorForBulletBorder": true, "bulletBorderThickness": 3, "fillAlphas": 0, "lineAlpha": 1, "title": "Users", "valueField": "users" }], "categoryField": "date", "categoryAxis": { "gridPosition": "start", "gridAlpha": 0.05 }, "export": { "enabled": true, "libs": { "path": "../libs/" } // , // "fileName": "ConversationVsUsers" + dateRange } });
I am able to get the button but able to download it.

Please suggest.

@SupriyaSudhindra
Copy link
Author

Please help me solve this...it's urgent

@ghost
Copy link

ghost commented Jul 26, 2019

In our case after updating to Angular 7, exporting buttons generated from amcharts3 are just refreshing page, while on Angular 5 everything worked out of the box.

Anyone had similiar problem ? @Pauan do you maybe know cause of this issue?

@serheypast
Copy link

serheypast commented Jul 29, 2019

Please help me solve this...it's urgent

Do u solve this? I have the same issue

@serheypast
Copy link

I had solved this.

  1. Upgrade to the latest version
  2. Include to index.html this file <script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>.
  3. Import this plugin to your project https://github.com/amcharts/export

@ghost
Copy link

ghost commented Aug 9, 2019

@serheypast

What exactly do you mean by 3rd step ?
I tried few things and still when clicking on any of the exporting options, event is not catched and page is refreshed.

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