Plotly Histogram

Hey,

I try to realize a histogram to analyse the hourly energy consumption over a timespan. I think it would be a good idea to use a scatter plot.
The X axis is fixed and should show 24 classes (hours).
I have an entity that sums up the energy consumption over the specific hour.
How to get that entities in the graph as y-values?

type: custom:plotly-graph
layout:
  xaxis:
    type: number
    showlegend: false
  yaxis:
    fixedrange: true
    range:
      - 0
      - 50
entities:
  - entity:
    x:
      - 1
      - 2
      - 3
    y:
      - 5
      - 20
      - 15
raw_plotly_config: true

This is the example to get x and y values into that plot. How to replace the y values by an entity?