What's proper way to save plotly graph to local file with javascript?
img_png.attr("src", url);
Plotly.toImage(gd,{format:'png',height:400,width:400});
Above code from official document save it to element, I would like to save it to local disk directly!