RomRider / apexcharts-card

📈 A Lovelace card to display advanced graphs and charts based on ApexChartsJS for Home Assistant
MIT License
1.08k stars 75 forks source link

Can't retrieve long-term statistics data #697

Closed cooltings closed 1 month ago

cooltings commented 2 months ago

Checklist

Describe the bug A clear and concise description of what the bug is.

I have some long term statistics energy data that apexcgarts-card cannot seem to access. It just displays nothing after data switches to long term statistics:

Screenshot 2024-05-05 at 14 47 27 Screenshot 2024-05-05 at 14 53 04

Version of the card Version: 2.0.4

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
stacked: true
span:
  end: day
  offset: '-10day'
header:
  show: true
  title: ApexCharts-Card
  show_states: true
  colorize_states: true
series:
  - entity: sensor.vue_2_0_123_1min
    type: column
    group_by:
      func: avg
      duration: 120min
    color: lightblue
    statistics:
      period: 5minute

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior A clear and concise description of what you expected to happen. Another bar would appear to the left of the arrow drawn above Desktop (please complete the following information):

Safari - Latest

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

midadami commented 2 months ago

Works fine for me using: statistics: type: mean

Your period prob too low

cooltings commented 1 month ago

Thanks, changing period to hour worked :)