Skip to content

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

Description

@SupriyaSudhindra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions