Grafana custom time range for custom Graph Panel

Solved! All I had to do is modify addTimeAxis() function as I mentioned in the second possible solution (I had an import problem, that’s why I couldn’t see its changes).

I modified ‘min’ and ‘max’ variables there before they were sent to the panels options and it’s all working now.