This sample depicts the top 10 best-selling smartphone brands. Print and export options have been enabled in this sample.
In this example, you can see how to export and print the rendered treemap. The TreeMap can
be exported to JPEG, PNG, SVG, and PDF formats. Print functionality is done by print
method when allowPrint
is set as true. Export functionality is done by
export
method when allowImageExport
and
allowPdfExport
is set as true.
Injecting Module:
To make use of the print and export support, we need to inject the Print
module into the services
.
More information on print and export can be found in this documentation section.