Export charts as pdf

Hi all, I have a question about the the Charts widget. I want to export my chart as a pdf.  I came to the point were I have just one icon to export the chart, which is exactly what I want. However, I can't change the output format from png to pdf.  I think I can change it with the 'toImageButtonOptions: {}' configuration, but I don't know the syntax to change the output format. Can anyone help me out here? Kind regards and keep it up with this extremely helpful community!
1 answers

The (plotly) charts widget works in your browser. PDF's are often created at the server. You can download the chart as an image but not as pdf. Running plotly on the server is quite complex. So there is no easy answer.