You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated the card to the latest version available
I cleared the cache of my browser
I verified that I'm really running the lastest version in my browser console
I checked if there is another issue opened with the same problem
Describe the bug
Hi,
I encountered an issue with the avg function in apexcharts-card. When the values to be averaged are all identical, the card crashes and fails to render properly.
Steps to reproduce:
Configure apexcharts-card with a dataset where all values are the same.
Use the avg function to calculate the average.
Observe that the chart fails to display.
Expected behavior: The card should handle datasets with identical values correctly and display the average without errors.
Actual behavior: The card crashes or fails to render when the dataset contains identical values.
The problem is on the "blueriiot_pool_sensor_pool_temperature" value
Screenshots
If applicable, add screenshots to help explain your problem.
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Browser [Firefox]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [iPhone15pro]
OS: [iOS18.2]
Browser [Safari]
Additional context
This issue seems to be related to how the avg function processes identical values. It might be a division by zero or an assumption of variability in the dataset.
Thank you for looking into this!
The text was updated successfully, but these errors were encountered:
Checklist
Describe the bug
Hi,
I encountered an issue with the avg function in apexcharts-card. When the values to be averaged are all identical, the card crashes and fails to render properly.
Steps to reproduce:
Expected behavior: The card should handle datasets with identical values correctly and display the average without errors.
Actual behavior: The card crashes or fails to render when the dataset contains identical values.
Version of the card
Version:
v2.1.2
To Reproduce
This is the configuration I used:
The problem is on the "blueriiot_pool_sensor_pool_temperature" value
Screenshots
If applicable, add screenshots to help explain your problem.
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
This issue seems to be related to how the avg function processes identical values. It might be a division by zero or an assumption of variability in the dataset.
Thank you for looking into this!
The text was updated successfully, but these errors were encountered: