Proper Handling incorrect DIFF data n Apex card

Hi all,
Looking for your help…
I have an Apex card in Home Assistant, which shows data from entity, which provides power consumption data during a day. The entity data is an ongoing sum of the values in kWh.
I need to display power consumption per hour, that means I put a “diff” in chart data.
However, data is nullified every midnight between 00:00 and 00.01, and this leads to negative values in the chart around this time.
How can I handle this issue properly ?

My script

type: custom:apexcharts-card
apex_config:
  chart:
    stacked: true
    height: 400
    width: 600
  xaxis:
    labels:
      format: HH
  legend:
    show: false
  yaxis:
    decimalsInFloat: 2
graph_span: 24h
span:
  start: day
show:
  last_updated: false
header:
  show: true
  show_states: true
  colorize_states: true
  title: Energy
series:
  - entity: sensor.main_vue_1_1d
    name: Corridor
    type: column
    unit: " kWh"
    color: darkviolet
    group_by:
      func: diff
      duration: 1h
    show:
      datalabels: false

P.S. I can just set YAXIS min : 0, but it just cut data at the midnight.
Thanks a lot for your suggestions !