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.

Wrong last bar value - always zero.

See original GitHub issue

Last bar on graph is wrong, also hours to show omitting last day (history-graph show one day more with 720 hours).

image image

aggregate_func: max
cache: false
color_thresholds:
  - color: '#f0f042'
    value: 15
  - color: '#f0e342'
    value: 7.5
  - color: '#d0c442'
    value: 5
  - color: '#c0c042'
    value: 0
entities:
  - entity: sensor.daily_pv4
    index: 0
    name: Dzienna produkcja PV
group_by: date
hours_to_show: 720
icon: 'mdi:solar-power'
show:
  graph: bar
type: 'custom:mini-graph-card'
entities:
  - entity: sensor.daily_pv4
hours_to_show: 720
refresh_interval: 0
type: history-graph

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
kalkihcommented, Jul 3, 2020

Okay, will make a release tonight 🙃

2reactions
kalkihcommented, Jul 3, 2020

Out now ➡️ v0.9.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rule 25: Always start your bar charts at zero - AddTwo
Yes. However, that doesn't mean that a bar chart starting at zero is always a good chart.
Read more >
Show bar with zero value in ChartJs v2 - Stack Overflow
This solution should raise two questions: First, one should be aware that this manipulates the height of a 0 value bar, thus manipulating...
Read more >
my bars don't start at zero - storytelling with data
Let's remake the chart, starting the baseline at zero this time. With a better understanding of the data, I found the above “corrected”...
Read more >
How to suppress 0 values in an Excel chart - TechRepublic
Perhaps the most permanent fix is to replace literal 0 values with the NA() function using Excel's Find and Replace feature. If the...
Read more >
Display or hide zero values - Microsoft Support
To display zero (0) values as blank cells, uncheck the Show a zero in cells that have zero value check box. Hide zero...
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