Repeating Motif Plot in Graph: Query Assistance Needed

I’m currently working on visualizing motifs in a time-series data set using InfluxDB, and I’m facing a challenge in repeating a specific motif plot throughout the entire graph. Below is the query I’ve attempted:

from(bucket: "motifs_1")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "motifs_per_signal")
  |> filter(fn: (r) => r["_field"] == "sensor_reading")
  |> filter(fn: (r) => r["sensor_name"] == "[3:25]")
  |> filter(fn: (r) => r["motif_name"] == "Motifs_1")
  |> window(every: 40s)
  |> fill(column: "_value", usePrevious: true)

I’d like to repeat this motif plot throughout the entire graph, but my attempts haven’t been successful. Could someone please guide me on how to properly structure the query to achieve this? Any insights or suggestions would be greatly appreciated. Thank you!