I've got a Bokeh app that charts multiple lines depending on the values for certain widgets that a user selects. I would like to give the user the opportunity to download the raw data behind the chart.
Is it possible to download the data for certain lines shown in a Bokeh chart as a csv/Excel file?
Edit:
As suggested, I have included the CustomJS callback from this Git repo in my script: https://github.com/bokeh/bokeh/tree/master/examples/app/export_csv
Since my Bokeh source contains data for a Multiline
chart and not a DataTable
the output is not as expected. Unfortunately, I don't have any experience with Javascript. How can I modify the script such that the returned csv file accurately shows the data stored in my source multilines xs
and ys
?