Interval doesn't change

Im using Grafana 9.3.1 with InfluxDB v2.5.1with FLUX.
I have set energy power usage BAR chart.
This is my QUERY:

import "timezone"
option location = timezone.location(name: "Europe/Warsaw")
from(bucket: "openhab_db")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r._measurement == "pompa_dzis")
  |> filter(fn: (r) => r._field == "value")
  |> aggregateWindow(every: 1d, fn: last, createEmpty: false)
  |> timeShift(duration: -1s)

I have set interval to 1d, but even with this I see on X-Axis interval as intermal_minute from grafana.ini . I know this, because if I change interval_minute to show something else it changes on this chart.

How to work it out so I don’t have to change it on conf file??