Skip to content

Interface: ConfigToImageButtonOptions ​

Options for the modebar "download image" button.

Properties ​

PropertyTypeDefault valueDescription
filename?string"newplot"File name.
format?"png" | "jpeg" | "webp""png"Image format.
height?numberundefinedHeight in CSS pixels (defaults to the chart). Minimum: 1
scale?number1Resolution multiplier. Minimum: 0
width?numberundefinedWidth in CSS pixels (defaults to the chart). Minimum: 1

Released under the MIT License.