Skip to content

IExportPrintOptions

Type interface

Represents options for print.

Sources

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

Inheritance

IExportPrintOptions extends IExportImageOptions.

IExportPrintOptions is not extended by any other symbol.

Properties

delay

Type numberDefault 500

A delay in milliseconds to wait before initiating print.

This delay is necessary to ensure DOM is prepared and repainted before print dialog kicks in.

disabled

Type booleanSince 4.9.11

Set this option to disabled for a format to not show up in ExportMenu.

printMethod

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

Method to use for printing.

If one fails for your particular setup, try the other.

"css" - inserts dynamic CSS that hides everything, except the image being printed.

"iframe" - creates a dynamic <iframe> with the image, then prints it.

7 inherited items
keepTainted

Type booleanDefault falseInherited from IExportImageOptions

Normally, Export removes "tainted" images (images that are loaded from other host than the chart itself) before export.

Set this to true to disable it.

Please note that removal of tainted images might trigger cross-origin security restrictions in browser and prevent the whole export operation, so use with caution.

maxHeight

Type numberInherited from IExportImageOptionsSince 4.9.24

Maximum height in pixels of the exported image. If source chart is bigger thank this, it will be scaled down.

NOTE: this setting might be overidden by minHeight.

maxWidth

Type numberInherited from IExportImageOptionsSince 4.9.24

Maximum width in pixels of the exported image. If source chart is bigger thank this, it will be scaled down.

NOTE: this setting might be overidden by minWidth.

minHeight

Type numberInherited from IExportImageOptionsSince 4.9.24

Minimum height in pixels of the exported image. If source chart is smaller thank this, it will be scaled up.

minWidth

Type numberInherited from IExportImageOptionsSince 4.9.24

Minimum width in pixels of the exported image. If source chart is smaller thank this, it will be scaled up.

quality

Type numberInherited from IExportImageOptions

Quality of the exported image. (0-1)

scale

Type numberDefault 1Inherited from IExportImageOptions

Rescale image.

Number less than 1 will shrink the image.

Number bigger than 1 will scale up the image.