Showing graph instead of bar

I would see below sensor as a bar before. after recent HA upgrade its coming up as graph, any help / advice appreciated, details below

sensor yaml

  - platform: mqtt
    name: "voltronic_inverter_mode"
    state_topic: "homeassistant/sensor/voltronic_inverter_mode"
    unit_of_measurement: ""
    icon: "mdi:solar_power"

lovelace

type: history-graph
entities:
  - entity: sensor.voltronic_inverter_mode
hours_to_show: 24
refresh_interval: 0

currently displayed as

would like it to be

value i am getting in this entity - B, L or S

Remove this:

    unit_of_measurement: ""

Also you could add a value template to convert B, L an S into human readable words if you want.