Bar Gauge doesn't update width when variable is changed and all updated values are 0

  • What Grafana version and what operating system are you using?
    Version 7.5.15 and Windows.

  • What are you trying to achieve?
    Bar Gauge width should update when variable is changed and all values are 0.

  • How are you trying to achieve it?
    I have used query to fetch data for different duration and using Bar gauge visualization to display it.

  • What happened?
    Visualization when default variable is selected :

    Visualization when variable is updated/changed and all updated values are 0:

  • What did you expect to happen?
    Visualization should have changed to the following image when variable was changed.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    N/A

  • Did you follow any online instructions? If so, what is the URL?
    N/A