Sleep tracking issues

Hi all,
First post here after months of stalking the page.

I am trying to create a sleep tracker using owlet socks, I have the owlet socks installed in to HA and I can set up the standered tracker for the sensor bit it is unclear. I have been trying to use apex cards but I can’t get it to track. In the images are a screen shot of what am trying to copy and what I am getting, and the socks attributes.
After a bit of digging I think my YAML code is missing stating the attributes, but am unsure on how to.

This is my current code:

type: custom:apexcharts-card
chart_type: donut
header:
show: true
show_states: true
colorize_states: true
title: Harlan sleep
series:

  • entity: sensor.owlet_baby_care_sock_sleep_state
    name: Harlan owlet sock
    type: column
    color: darkviolet