Example of Print & Export in Javascript TreeMap Control

Print & Export

This sample depicts the top 10 best-selling smartphone brands. Print and export options have been enabled in this sample.

More Details...

Export Type
File Name

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 TreeMap module using the TreeMap.Inject(Print), TreeMap.Inject(ImageExport) and TreeMap.Inject(PdfExport) More information on print and export can be found in this documentation section.