Download data from plot

Hi,

Currently the plotly plots give an option to download the plot as png. Is there a way to also add a button to the plot that says: download plot data as csv. In this case for example if it’s a time series it’d allow the user to download the data as date, value in csv format.

What’d be the recommended way to do this?

Thanks in advance!

For now, you’ll need to implement this logic yourself with a download button or link. See Download raw data and Allowing users to download CSV on click for more details.

this would be a convenient feature so we don’t have to reimplement on each chart (DRY)