Error in ApexCharts Card

I am using the ApexCharts card to have a history of daily energy consumption.
The problem is that it does not save all my daily records, 10/12 records are seen and the others are deleted, I don’t know if I explain myself (I leave an image)

Sin título-1

consumption prior to June 3 is being erased

This is the code

type: custom:apexcharts-card
graph_span: 30d
span:
  end: day
header:
  show: true
  title: Consumo Energia Por Día
  show_states: true
  colorize_states: true
series:
  - entity: sensor.acumulado_diario_casa
    name: Consumo
    type: column
    yaxis_id: izq
    unit: ' Kw/h'
    color: green
    group_by:
      func: last
      duration: 1d
    show:
      extremas: true

Thanks in advance!

And here is where it explains ‘why’

History - Home Assistant (home-assistant.io)

and here is where that is managed

Recorder - Home Assistant (home-assistant.io)

But it is not recommended to stretch the period, it will grow your db so you need to carefully select which entities could be kept

And if you want longer then you would need to revert to using ‘statistics’ in your Apexchart