Skip to content

IExportingPrintOptions

Type interface

Sources

IExportingPrintOptions is an interface: it describes a shape of data and is not imported on its own.

Inheritance

IExportingPrintOptions extends IExportingImageOptions.

IExportingPrintOptions is not extended by any other symbol.

Properties

delay

Type undefined | numberDefault 500

With "iframe" printing, how long in milliseconds to wait before opening the print dialog, so the image is ready. With "css", how long the page stays hidden for printing.

imageFormat

Type "png" | "jpg"Default "png"

Image format to print.

printMethod

Type "css" | "iframe"Default "iframe"

How to print. If one doesn't work in your setup, try the other.

  • "iframe": prints the image from a hidden <iframe>.

  • "css": hides the rest of the page with CSS while it prints.

7 inherited items
disabled

Type undefined | false | trueInherited from IExportingFormatOptions

Leaves this format out of the ExportingMenu.

maintainPixelRatio

Type undefined | false | trueDefault falseInherited from IExportingImageOptions

Exports the image at the chart's size in CSS pixels. When false, it is exported at the screen's resolution: larger on high-density screens.

More info: Exporting to image formats: pixel ratio

maxHeight

Type undefined | numberInherited from IExportingImageOptions

Maximal height of exported image, in pixels.

More info: Exporting to image formats: sizing exported image

maxWidth

Type undefined | numberInherited from IExportingImageOptions

Maximal width of exported image, in pixels.

More info: Exporting to image formats: sizing exported image

minHeight

Type undefined | numberInherited from IExportingImageOptions

Minimal height of exported image, in pixels.

More info: Exporting to image formats: sizing exported image

minWidth

Type undefined | numberInherited from IExportingImageOptions

Minimal width of exported image, in pixels.

More info: Exporting to image formats: sizing exported image

quality

Type undefined | numberInherited from IExportingImageOptions

Quality of the image, 0 to 1: 1 by default, 0.8 for JPG. Only JPEG images use it.