Interface: ToImageOptions
Options of chart.toImage / toImage(el, …) (Plotly's toImage options, plus transparent).
Extended by
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
format? | readonly | ImageFormat | Image format. Default 'png'. |
height? | readonly | number | null | Height in CSS px; see width. |
imageDataOnly? | readonly | boolean | Resolve to the base64 data without the data:image/…;base64, prefix (Plotly). |
scale? | readonly | number | Pixels per CSS px: the image is width·scale × height·scale pixels. Default 1 (not the screen's device pixel ratio, so exports are the same on every screen). |
transparent? | readonly | boolean | Drop the paper background (the default look's #0a0a0f), and the plot-area background unless the figure sets layout.plot_bgcolor itself, for an image with an alpha channel. Ignored for jpeg, which has none. Default false. |
width? | readonly | number | null | Width of the exported figure in CSS px: the figure is laid out again at this size. Default (also null): the chart's current width (layout.width, else 700 for a figure object). |