History Graph a bar, not line despite unit of measurement defined

I have an ESP32-Sensor which I integrated into the system via autodiscover

Even though I defined a unit of measurement it does not make a real graph of it:
grafik

grafik

esphome:
  name: bedsensor
  platform: ESP32
  board: esp32dev
  platformio_options: 
    platform: espressif32
    board: az-delivery-devkit-v4
    board_build.mcu: esp32
    board_build.f_cpu: 240000000L
wifi:
  ssid: ""-------""
  password: "-------"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: ""-------""
    password: ""-------""

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "0000"

ota:
  password: "0000"



sensor:
  - platform: hx711
    name: "HX711 Value"
    dout_pin: GPIO21
    clk_pin: GPIO22
    gain: 128
    update_interval: 20s
    unit_of_measurement: "kg"

Did I do something wrong?
According to https://www.home-assistant.io/lovelace/history-graph/ the graph should change to lines from bars.

Are you graphing the correct sensor?

According to your sensor its friendly name is “HX711 Value” Yet it appears you are graphing something called “Bed Occupancy”.

It is the right sensor.

After checking it now, the history card has been updated. It looks like there were initial non numeric values which created it. After some time those values disappeared (from the graph) and the graph has been updated. So whenever those values appear or when i change the „hours to show“ wider, the Graph Style will be changed due to the appearing Value.
Thanks anyway.