ApxCharts not loading

Hi

I’m using this code to make a pie chart but it’s just not rendering…

type: custom:apexcharts-card
chart_type: pie
header:
  title: Energieverbruik per tarief
  show: true
series:
  - entity: sensor.empower_dal
    name: Dal
  - entity: sensor.empower_piek
    name: Piek
  - entity: sensor.empower_superdal
    name: Superdal
apex_config:
  labels:
    - Dal
    - Piek
    - Superdal
  colors:
    - "#2ecc71"
    - "#e67e22"
    - "#3498db"
  legend:
    position: bottom
  dataLabels:
    enabled: true
    formatter: function (val, opts) { return val.toFixed(1) + '%'; }
  tooltip:
    enabled: true
    "y":
      formatter: function(val) { return val + ' kWh'; }
  plotOptions:
    pie:
      donut:
        size: 65%
        labels:
          show: true
          total:
            show: true
            label: Totaal
            formatter: >-
              function (w) { return w.globals.seriesTotals.reduce((a, b) => a +
              b, 0) + ' kWh'; }
            style:
              fontSize: 22px
              fontWeight: bold
              colors:
                - "#2ecc71"
                - "#f1c40f"
                - "#e74c3c"
update_interval: 60s