Example of Export in Angular Chart Component

This sample demonstrates client-side exporting of the chart, enabling you to export its data to Excel, PDF, and CSV formats. Additionally, it allows you to save the chart in image formats such as JPEG, PNG, and SVG.

Top 10 Countries Using Solar Power
Properties
Export Type:
File Name:
Description

In this example, you can see how the export functionality is configured. The rendered chart can be exported in JPEG, PNG, SVG, and PDF file types. Data from the chart can also be exported to Excel and CSV files.

Injecting Module

Chart component features are segregated into individual feature-wise modules. To use export, we need to inject ExportService into the @NgModule.providers section.

More information on the export can be found in this documentation section.