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.

bug: `state: last` and `graph: bar` breaks graph rendering

See original GitHub issue

I have always increasing sensors for internet upload and download and I’m trying to make an hourly upload and download bar graph. Everything works great except I’m trying to have the latest graph values show for the state rather than the actual sensor state values (as they are meaningless … total upload and download since last router reboot). If I change the show > state to true or false, everything is fine; it doesn’t seem to like ‘last’ although that is the setting according to the docs which will render what I’m looking for.

I’m on the latest version of HA (2022.2.8), HACS, and the mini graph card.

type: custom:mini-graph-card
entities:
  - entity: sensor.asuswrt_download
    name: Download
    color: '#595BBD'
    show_state: true
  - entity: sensor.asuswrt_upload
    name: Upload
    color: '#CD90EA'
    show_state: true
show:
  state: last
  graph: bar
  labels: true
  legend: false
hours_to_show: 24
group_by: hour
aggregate_func: diff
name: Hourly Internet Bandwidth Used
icon: mdi:wan

This image is with the show > state set to true and everything looks good except the sensor states are showing.

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
jlsjonascommented, Mar 6, 2022
1reaction
EmJay276commented, Feb 22, 2022

I noticed the same issue, it’s the case if state: last and graph: bar are used together.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Displaying bugs raised vs closed in a bar graph
I am trying to produce a dashboard of bugs raised vs bugs closed for my project - I have produced a filter and...
Read more >
javascript - Chartjs Bar Chart showing old data when hovering
Show activity on this post. I have a bar chart that's created using chart. js. Everything works fine on page load, but when...
Read more >
Which Type of Chart or Graph is Right for You? - Tableau
Stacked and side-by-side bar charts let you break down your data even further, giving more depth to your analysis. Combine bar charts with...
Read more >
Changelog | Shader Graph | 7.7.1 - Unity - Manual
Fixed a bug where closing the editor with an open graph with changes would ... up HDRP Master Node Shader Graphs without the...
Read more >
Axes and labels - Carbon Design System
If data is available during an axis break, re-style line segments to use 0.5px stroke and hide circles representing data points. Gap in...
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