ApexCharts Card for Home Assistant, showing a donut chart of where the home's power is going

Card guide Home Assistant custom cards

ApexCharts Card for Home Assistant

RomRider/apexcharts-card 1.9k By RomRider Last release 4 December 2026

A chart card built on the ApexCharts library: lines, areas and columns over time, two y-axes on one chart, and donut and radial bar charts drawn from each sensor's current value.

What it is

ApexCharts Card puts the ApexCharts charting library inside a Home Assistant card. It's one card, custom:apexcharts-card. chart_type and each series' type decide what it draws: line, area and column series over time, or a donut, pie or radial bar from each sensor's latest value.

graph_span sets how far back a time chart reaches, 24 hours unless you change it. group_by splits the history into buckets and keeps one value per bucket, such as the average, minimum, maximum or last reading, which is how the column charts below get one column per hour. Anything the card doesn't offer itself can go through apex_config, which passes options straight to ApexCharts.

Our time charts draw five minutes of fast-changing demo sensors, with a column every 30 seconds. The YAML below is set for real sensors instead: 24 hours, and one column per hour.

It installs through HACS.

What it gives you

Shot on Home Assistant 2026.10.1. Stock is Home Assistant with no theme installed; a theme changes how these look, not what they do.

Line chart

custom:apexcharts-card

Two sensors on one time chart, with each current value in the header in its line's colour.

Seen on An energy dashboard

Show the YAML
custom:apexcharts-card
type: custom:apexcharts-card
section_mode: true
grid_options:
  columns: 12
graph_span: 24h
header:
  show: true
  title: Network
  show_states: true
  colorize_states: true
series:
- entity: sensor.network_in
  name: In
  stroke_width: 2
- entity: sensor.network_out
  name: Out
  stroke_width: 2

Area chart

custom:apexcharts-card

One sensor's history as a line with the area under it filled.

Seen on An energy dashboard

Show the YAML
custom:apexcharts-card
type: custom:apexcharts-card
section_mode: true
grid_options:
  columns: 12
graph_span: 24h
header:
  show: true
  title: Download
  show_states: true
  colorize_states: true
series:
- entity: sensor.speedtest_download
  name: Download
  type: area
  stroke_width: 2

Column chart

custom:apexcharts-card

Download and upload as columns side by side, each column the average of one hour, set with group_by.

Seen on An energy dashboard

Show the YAML
custom:apexcharts-card
type: custom:apexcharts-card
section_mode: true
grid_options:
  columns: 12
graph_span: 24h
header:
  show: true
  title: Speedtest
  show_states: true
  colorize_states: true
series:
- entity: sensor.speedtest_download
  name: Download
  type: column
  group_by:
    func: avg
    duration: 1h
- entity: sensor.speedtest_upload
  name: Upload
  type: column
  group_by:
    func: avg
    duration: 1h

Two y-axes

custom:apexcharts-card

Router load as columns on the left axis and temperature as a line on the right, so two units share one chart.

Seen on An energy dashboard

Show the YAML
custom:apexcharts-card
type: custom:apexcharts-card
section_mode: true
grid_options:
  columns: 12
graph_span: 24h
header:
  show: true
  title: Router
  show_states: true
  colorize_states: true
yaxis:
- id: load
  min: 0
  decimals: 0
- id: temperature
  opposite: true
  decimals: 0
series:
- entity: sensor.router_load
  name: Load
  type: column
  yaxis_id: load
  group_by:
    func: avg
    duration: 1h
- entity: sensor.router_temperature
  name: Temperature
  type: line
  yaxis_id: temperature
  stroke_width: 2
  group_by:
    func: avg
    duration: 1h

Donut chart

custom:apexcharts-card

Where the home's power is going right now, one slice per appliance with its reading in the legend.

Seen on An energy dashboard

Show the YAML
custom:apexcharts-card
type: custom:apexcharts-card
section_mode: true
grid_options:
  columns: 12
chart_type: donut
header:
  show: true
  title: Home power
series:
- entity: sensor.ev_charger_power
  name: EV charger
- entity: sensor.hot_water_power
  name: Hot water
- entity: sensor.aircon_power
  name: Air con
- entity: sensor.pool_pump_power
  name: Pool pump
- entity: sensor.fridge_power
  name: Fridge

Radial bar

custom:apexcharts-card

Current values as rings filling towards 100%, which suits sensors that already read as a percentage, such as battery charge.

Seen on An energy dashboard

Show the YAML
custom:apexcharts-card
type: custom:apexcharts-card
section_mode: true
grid_options:
  columns: 12
chart_type: radialBar
header:
  show: true
  title: Status
series:
- entity: sensor.battery_soc
  name: Battery
- entity: sensor.router_load
  name: Router load

The repository

RomRider/apexcharts-card A chart card built on the ApexCharts library: lines, areas and columns over time, two y-axes on one chart, and donut and radial bar charts drawn from each sensor's current value. View on GitHub
Author
RomRider @RomRider
Latest release
v2.2.4 4 December 2026
GitHub stars
1.9k
Install via
HACS Free, MIT

Maintenance: No release since 2.2.3 in August 2025, and no commits to the main branch since. People are still reporting problems: 16 issues opened since March 2026, including the card getting stuck loading when update_interval is set and the brush view snapping back on every refresh.

Built in instead: Home Assistant's History graph and Statistics graph cards draw plain line and bar trends with nothing to install. Core has nothing like the donut, the radial bar or a chart with two y-axes.

Dashboards that use it

Frequently asked questions

Why does every example set section_mode?

In a sections view, section_mode: true makes the card fill its grid cell, and the card only reads grid_options when it's set. On a masonry view you can leave both out.

Is there a visual editor?

No. The card shows up in the card picker, but you configure it in the code editor. It checks every option and shows a red error card naming the one it doesn't understand, except apex_config, which it passes to ApexCharts unchecked.

Why is the chart one reading behind the sensor?

Home Assistant writes history in batches, so the newest state can land after the card has redrawn. Raise update_delay, which is 1500ms by default. The README says there's no need to go above 10s.

Can it chart more than the recorder keeps?

Yes. Add statistics to a series and it reads Home Assistant's long-term statistics instead, by 5 minutes, hour, day, week or month, so a chart can reach back further than the recorder keeps.

How do I change the colours?

Set color on a series, or color_list on the card to set the order for every series. Both take colour names, hex values, rgb() or a theme variable such as var(--primary-color).

Still need a hand?

We answer most messages within one business day. If your question is about an existing order, have your order number ready. It speeds things up.

Contact us