One way you could do it is by adding an input form with a calendar field (with end date enabled), set it to a variable like
filter_date, and then use this variable in the chart configuration like this:
Here you can see a simple example with no dates chosen:
And now only getting the data from a certain range:
If I understood the second half of your question correctly, you could also make it so that the form itself runs an analysis if you want to have more control over the date selection for filtering the line chart, you just need to make it put the dates in the variable that you chose for this purpose in the chart’s configuration.
Thanks for contacting us! Let me know if this helps.