ZoomCharts Documentation

ZoomCharts.Configuration.BaseExportDimensions

Methods

This type does not define any methods.

Properties

dpi: number
Version 1.12.0: the property is no longer mandatory when unit is mm, instead the default of 300 is applied.

Specifies the DPI setting used to calculate the pixel size if unit is specified as mm.

Note that because of browser API limits the metadata of the resulting image will always specify DPI=96 even though the pixel size will be calculated correctly.

height: number

Specifies the width of the resulting image. If not given, the current width of the chart element is used instead.

If the width is also specified but the aspect ratio is different from the chart, the image will be aligned in the top-left corner.

scaling: number
Version 1.12.0: value is applied to width and height in this object as well, not only autodetected values.

Specifies a scale factor to the resulting image. A value of 2 will result in both the width and height being multiplied by 2.

unit: "mm" | "px"

Specifies the unit in which the width and height values are given.

Valid values:
  • mm - both width and height are given in milimeters, dpi is used to calculate pixel size.
  • px - both width and height are given in pixels.
width: number

Specifies the width of the resulting image. If not given, the current width of the chart element is used instead.

If the height is also specified but the aspect ratio is different from the chart, the image will be aligned in the top-left corner.

X