Save downloaded file with custom filename

I have a button which downloads the data plotted on the graph as a CSV file. However, I am trying to include the variables related to the data along with the filename. Any tips on how to go about that?

As i read you question, you would like to be able to specify the filename, which is suggested in the file download dialogue? This can be achieved with the Download component; it has a filename argument to do just that,

Yes, I would like the filename to change based on the data found in the graph (that changes by filters).

hey, any lead here? I’m stuck on the same problem

Did you try the Download component?