Dynamic time range selection

is it possible to have dynamic time range selction . the start and end time is decided by query or variable and then the same start to end is selected based on value of starttime and endtime coming from data using query .

i am trying to solve the case of i want to display graph .

If you mean writing your data to $__from and $__to variables from queries, then it’s not possible as of now.

See also:

start and end time coming from a query is possible

why do you want to do that instead of using grafana time picke