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.

If a point with a zero value is selected - then a wrong state is displayed

See original GitHub issue

My weather station measures the amount of rain with a rain counter, which sums up the continuous amount of rain. For showing the daily rain, I’ve configured the following card:

type: custom:mini-graph-card
name: Daily Rain
entities:
  - entity: sensor.weather_station_rain_counter
show:
  graph: bar
hours_to_show: 168
aggregate_func: delta
group_by: date
hour24: true
line_color: '#15317E'
labels: true 

The result seems correct: mgc 01 27.4 mm is the total amount so far.

When hovering over the particular days, the card shows the correct value unless on that day there was no rain. Than it shows the total amount. However, IMHO it should show “0”: mcg06

Is my configuration wrong, or is it a card issue?

Thanks!

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:5
  • Comments:10

github_iconTop GitHub Comments

1reaction
wizakecommented, Nov 10, 2022

I’m also having this issue with a bar chart 😦

1reaction
scharmachcommented, Oct 26, 2022

Not a solution, only a workaround:

color_thresholds:
  - value: 0
    color: '#1c1c1c'
  - value: 1
    color: '#a4958b'
  • 0 = colour of the background
  • ≥ 1 = colour of the bars

grafik

Read more comments on GitHub >

github_iconTop Results From Across the Web

Video: Advanced IF functions - Microsoft Support
Before we get started with advanced IF functions, let's do a quick IF function refresher first. Watch this video for some examples.
Read more >
IF function - Microsoft Support
Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE. Use IF to conduct...
Read more >
Tests of Statistical Significance
If the probability of being wrong is small, then we say that our observation of the ... 4) Select and compute the test...
Read more >
<select>: The HTML Select element - HTML - MDN Web Docs
This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can...
Read more >
SPSS Tutorials: Defining Variables - LibGuides
The number of digits to display after a decimal point for values of ... Then use the drop-down menu to select the role...
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