Graph Panel - Set Graph Time Regions from query or variable

Is there a way to set the Graph Panel time region via a variable for the “From” and “To” fields?

there seems to be a lot of responses that are about time range, but not about Time Regions.

I want to have a dynamic region based on a query in variables. kind of like a start of event and end of event region (i dont want to use Annotations). Currently i have a static time set for each field, but need this to change based on the variable value.

thanks