Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar graph not showing correct values #205

Closed
tomlut opened this issue Nov 12, 2019 · 2 comments
Closed

Bar graph not showing correct values #205

tomlut opened this issue Nov 12, 2019 · 2 comments

Comments

@tomlut
Copy link

tomlut commented Nov 12, 2019

Incorrect data shown in bar graph:

aggregate_func: max
color_thresholds:
  - color: '#039BE5'
    value: 0
  - color: '#0da035'
    value: 5
  - color: '#e0b400'
    value: 7.5
  - color: '#e45e65'
    value: 10
entities:
  - entity: sensor.total_cost_today
group_by: date
hours_to_show: 168
name: Energy Cost Per Day
show:
  graph: bar
  labels: true
type: 'custom:mini-graph-card'

Screenshot_2019-11-12 Home Assistant(1)

Seems to be some sort of caching issue as a when opened in private browsing mode the graph displays correctly:
Screenshot_2019-11-12 Home Assistant

Actual last seven days data (newest to oldest):

4.64
5.29
6.08
5.81
6.49
5.95
5.17

Interestingly a line graph shows the same incorrect values:

color_thresholds:
  - color: '#039BE5'
    value: 0
  - color: '#0da035'
    value: 5
  - color: '#e0b400'
    value: 7.5
  - color: '#e45e65'
    value: 10
color_thresholds_transition: hard
entities:
  - sensor.total_cost_today
group: false
hour24: true
hours_to_show: 168
line_width: 4
name: Daily energy cost
points_per_hour: 1
show:
  extrema: true
  fill: fade
  icon: true
  labels: false
  name: true
  state: true
type: 'custom:mini-graph-card'

Screenshot_2019-11-12 Home Assistant(3)

Compare to built in graph:
Screenshot_2019-11-12 Home Assistant(2)

Or the mini graph opened in a private browsing window (values are slightly off due to number of points per hour, but not as bad as above):
Screenshot_2019-11-12 Home Assistant(4)

@Kejszijo
Copy link

+1
Same problem here.

@kalkih
Copy link
Owner

kalkih commented Nov 12, 2019

Thanks for the report!
Seems related to #193, same thing, clearing cached history data seems to solve it temporarily.
Let's continue tracking this issue in #193.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants