Mini-graph-card doesn't get the right value on graph

Hello,

I made this card to get data from Google Fit:

type: custom:mini-graph-card
entities:
  - sensor.steps_daily
icon: mdi:shoe-sneaker
name: Passi giornalieri
unit: passi
decimals: 0
hours_to_show: 168
group_by: date
font_size: 70
update_interval: 60
hour24: true
show:
  graph: bar
  icon_adaptive_color: true
color_thresholds:
  - value: 0
    color: '#8fce00'
  - value: 1000
    color: '#8fce00'
  - value: 0
    color: red
align_state: left
card_mod:
  style: |
    .ellipsis {
      color: #8Ab4f8;
    }

But, while the state has the correct value (3.676 steps made today), the today bar on the graph signs 184 steps only if I hover with the mouse:

image

Why this?

Try adding:

aggregate_func: last

or

aggregate_func: max

I solved with the second one option.
Now it seems work good.