FlowFuse / FlowFuse/node-red-dashboard

Gauge does not render properly.

Open
#842 1 comment 0 reactions 0 assignees View on GitHub
size:M type:bug
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 20h
Merged PRs (30d)
24

Description

### Current Behavior

The gauge widget in 3/4 mode:
* does not place the start and stop values at the end of the arc
* does not respect all color settings, last segment of the arc is red instead of the configured color of light green
* does not render the mustache template for the unit display at all, shows the mustache template string literally

Example image:
![Dashboard-2-0-defect-gauge-flows](https://github.com/FlowFuse/node-red-dashboard/assets/22770260/fc3b0939-da81-4b8b-8694-2d546ea537a8)

### Expected Behavior

* render the start and stop values at the end of the round scale
* render all arc segments with the actual configured colors
* render the the displayed unit string from the given mustache template or equivalent simple method for dynamic text

Example image from dashboard 1:
![Dashboard-1-good-gauge-flows](https://github.com/FlowFuse/node-red-dashboard/assets/22770260/ab7884b4-3e32-471d-9f64-cfb46bb3ac1b)

### Steps To Reproduce

Using the provided flow below is a minimal example, how to reproduce the defects:
[Dashboard-2-0-defect-gauge-flows.json](https://github.com/FlowFuse/node-red-dashboard/files/15261062/Dashboard-2-0-defect-gauge-flows.json)

### Environment

- Dashboard version: 1.8.1
- Node-RED version: 3.1.9
- Node.js version: v18.19.1
- npm version: 10.2.4
- Platform/OS: Debian 12.5
- Browser: Firefox 115.7.0esr

### Have you provided an initial effort estimate for this issue?

I can not provide an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.