#Apexchart-card not showing historical data

1 messages · Page 1 of 1 (latest)

raven frost
#

I created a new HACS Integration that connects with Oura ring API and imports that data into HA.

Upon first startup, I get all the historical data and add them to the sensor, then going forward, the data gets added daily.

I want to use an Apex Chart to view lets say the last 30 days worth of info, but it just doesn't want to render.

I simplified the graph I am using, and comparing it to the plain statistics-graph
Apex:

type: custom:apexcharts-card
header:
  colorize_states: true
graph_span: 30d
span:
  end: day
all_series_config:
  type: column
  opacity: 0.7
  stroke_width: 1
  group_by:
    func: last
    duration: 1d
series:
  - entity: sensor.oura_ring_readiness_score
yaxis:
  - min: 0
    max: 100
    apex_config:
      tickAmount: 10

statistics-graph:

chart_type: bar
period: day
type: statistics-graph
entities:
  - sensor.oura_ring_readiness_score
stat_types:
  - mean
days_to_show: 30
#

Apexchart-card dashboard not showing historical data

#

Apexchart-card not showing historical data

#

You can clearly see the data does exist, historical data is indicated by the light blue line and highlighted on the right, is the darker blue line as created by HA itself

acoustic coral
#

Are you sure apex reads statistics in that way?

#

Statistics and history are different data tables and I would guess it only reads the history by default