Function: downloadImage()
ts
function downloadImage(target, options?, chartOptions?): Promise<string>;Plotly's downloadImage: toImage and save the file as <filename>.<format> (default newplot.png). Resolves to the file name.
Parameters
| Parameter | Type |
|---|---|
target | | HTMLElement | FigureInput<object, LayoutInput> |
options | DownloadImageOptions |
chartOptions? | ChartOptions |
Returns
Promise<string>