X axis time range not changing automatically based on query result

Hello,
I am using postgres as data source for my graphs.
My data contains values of previous runs of my task,so obviously the data which i have is not real time.It is time specific.
For example it has data from time {2019-06-28 01:57:43 - 2019-06-28 02:45:56 , 2019-06-30 08:53:12 - 2019-06-30 10:52:32}.
When I select some old time data,the x axis range is not adjusting automatically to my fetched query result time.Hence it is showing “data points outside time range”.I have to manually change the time until now.
Is there a way where in the x axis range automatically matches my fetched time range.
Thank you.

Hello Sanathhollo, I have the same problem, did you managed to find a solution?