In my current situation, I am looking to develop a text panel within the Grafana Dashboard that includes both JavaScript and HTML. My goal is to have the ability to specify the time range directly from this panel.
While I understand that we can retrieve the time range using code similar to the following:
var timeRange = angular.element('grafana-app').injector().get('timeSrv').timeRange();
My focus now is on setting the time instead of just retrieving it.