Angular ChartsDownload
Saving chart images by API call.
We expose the APIs for triggering download via the AgChart class:
The AgChartInstance can be obtained using an Angular @ViewChild decorator to reference our AgChartsAngular tag, which
exposes a chart property.
This example demonstrates:
- How to obtain a reference to an
AgChartInstance. - How to use
AgChart.download()to start a chart image download. - How to use
AgChart.getImageDataURL()to create a base64-encoded image URL, and then open it in a new tab.