question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bar chart shows wrong values

See original GitHub issue

I am using mini-graph-card with bars to show the energy usage in kwh for the last 31 days. I am running the counter for around 24 hours now and the problem is that for the days before the 24h period the bar chart shows 0.02kwh as daily consumption instead of zero. Here is the config of the card and a screenshot:

type: custom:mini-graph-card
entities:
  - sensor.itd_meter_1_total_energy_daily
name: Дневна консумация
show:
  graph: bar
  extrema: false
  average: false
  labels: false
hour24: true
hours_to_show: 744
group_by: date

Screenshot 2022-02-09 at 10 30 17

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
pachi81commented, Apr 26, 2022

I have the same issue for my raining history. smoothing: false does not change anything. I have two workarounds for this problem:

  1. Using lower_bound: 0.2 (works for me, because the min rain detection is 0.2 in my case)
  2. Make such values dark (depending on the theme):
color_thresholds:
  - value: 0
    color: dark-grey
  - value: 0.1
    color: blue

image

1reaction
patman15commented, Apr 19, 2022

Hi!

I think, I have a similar issue with v0.11.0: Sometimes (not figured out when) the card shows instead of 0 the value of the last bar: screenshot

The value (state) is only updated on bars that are non-zero. For bars that should be zero the value of the last bar is shown.

type: custom:mini-graph-card
entities:
  - entity: sensor.wasser_stundlich
    color: blue
group_by: hour
lower_bound: 0
points_per_hour: 1
hour24: true
hours_to_show: 48
aggregate_func: max
smoothing: false
show:
  graph: bar
Read more comments on GitHub >

github_iconTop Results From Across the Web

Values shows wrong in stacked column - Microsoft Community
Values shows wrong in stacked column. I added 3D stacked column chart with values 20 , 0 and 3. I can see column...
Read more >
Bar Graph Troubles, incorrect values
Bar Graph Troubles, incorrect values ... The bar graph displays the values for CreatedDate and MovedDate as the same value, altogh different ...
Read more >
Bar Chart wrong value showing - Grafana Community
Hi, Found a small bug on the value at the tip of the bar, when I change the time range the value doesn't...
Read more >
Why Are My Excel Bar Chart Categories Backwards?
The fix is simple: check the two boxes for Categories in reverse order and Value (Y) axis crosses at maximum category. The protocol...
Read more >
Data label on Chart incorrect - Google Groups
makes the chart), she adds data values to the bars and some of them are incorrect according to the datasheet. She must manually...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found