Yield per Year in Bar Chart

i am a total beginner and am now trying to display my generated kwh per year. i ask for the total generated kwh, which is also displayed to me, but i can’t get it to display the respective years with the generated kwh.

like this:
182739 - Window

I try this:

from(bucket: "telegraf")
  |> range(start: -2y)
  |> filter(fn: (r) => r["_measurement"] == "mqtt_consumer")
  |> filter(fn: (r) => r["topic"] == "inverter/total/YieldTotal")
  |> difference(nonNegative: true)
  |> aggregateWindow(every: 1y, fn: sum, createEmpty: false)