ViCare BURNER entity - graph

I have a question regarding Burner entity of ViCare integration.
BURNER has two states, active or not active.
Grafana shows this:

Does anyone know how to change the view to something like this?

Flux code:

from(bucket: "Baza")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["entity_id"] == "vicare_burner_active")
  |> filter(fn: (r) => r["_field"] == "value")
  |> filter(fn: (r) => r["_measurement"] == "units")
  |> filter(fn: (r) => r["domain"] == "binary_sensor")
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
  |> yield(name: "mean")

Hello @Robinson,
You cant get a step function exactly but you can approximate it by creating empty rows and filling them with the previous value:

Try setting createEmpty to true with a higher frequency and then using the fill() function

    |> fill(usePrevious: true)

Thank you, Anaisdg.
What do you mean by “with a higher frequency”? Where do I set it?
I have done this so far and it now looks much closer to what I need.

from(bucket: "Baza")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["entity_id"] == "vicare_burner_active")
  |> filter(fn: (r) => r["_field"] == "value")
  |> filter(fn: (r) => r["_measurement"] == "units")
  |> filter(fn: (r) => r["domain"] == "binary_sensor")
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: true)
  |> fill(usePrevious: true)
  |> yield(name: "mean")

But Grafana shows it perfectly: