Horizontal Bar Graph

I saw a few posts about horizontal bar graphs, and read about Plotly. I'd prefer to avoid an external dependency if I can.

The dashboard Chart node supports a horizontal bar graph, but it lacks two things I'm looking for:

  • overlaying text on the bar
  • a different scale than the bar min and max values

I have data that varies between -140 and -40. I'd like to plot that. When I plot a negative range like that, the Bar extends from right to left. It's easy enough to convert the value to a positive number, but I'd still like to display the scale from -140 to -40.

Am I overlooking something here? I know a little about html, and have used the UI template for a few really simple displays, just for formatted text.

rpi 3b+, NR ver 4.0.5

Thanks,
Don

Not a Dashboard component - though it should be usable with either D1 or D2, I have an LED gauge web component if that helps. Though it does not currently allow separate setting of the LED values, I don't think it would be that hard to do, I'd be happy to try if you find the component otherwise useful.

https://wc.totallyinformation.net/tests/live/led-gauge

1 Like