Graph line with sensors

Hi,

I have 12 sensors with numeric values ​​in them corresponding to 12 months of data.
I want to make a graph line with the values ​​of each month.
I tried this:

type: custom:apexcharts-card
header:
  show: true
  title: Évolution
  show_states: true
  colorize_states: true
series:
  - entity: sensor.evolution_month_01
    data_generator: |
      const data = [];
      const now = new Date();
      const monthNames = ["Janv.", "Fév.", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Sept.", "Oct.", "Nov.", "Déc."];
      
      for (let i = 0; i < monthNames.length; i++) {
        const monthData = states['sensor.evolution_month_' + (i + 1)];

        const value = monthData && monthData.state ? parseFloat(monthData.state) : 0;
        const timestamp = new Date(now.getFullYear(), i, 1).getTime();
        data.push([timestamp, value]);
      }
      return data;

But the graph does not load, it remains “loading”.
Each sensor has a numeric value in it. Anyone have an idea?

Maybe post also the sensor data (or a very good representation of that). I am not sure if above will work if the data is not (!) in the attributes.
EDIT : and try the other HUGE post on Apexcharts, possibly this gets more attention
EDIT2: and have you tried to group by Month?

I have both.

A value per month like sensor.month1 , sensor.month2, etc
And a value like sensor.evolution with attributes like that:

evolution:
month1: 12
month2: 78
...

Too little data for me to see if the js would work, I guess it will not.
Maybe other people can?