Display the graph time resolution of a selected time scale

Is there a way to display the “time ($__interval)” in a singlestat window? For example, let’s say the current time range is set for “Last 1 year” scale, the singlestat window would show a 5-hour resolution. However, if zoomed in to the “Last 24 hours” the singlestat window would now show a scale of 5-minute resolution.