FlowFuse / FlowFuse/node-red-dashboard

Option to remove inactive series from legend after configurable timeout

Open
#2,090 4 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Description

The `ui-chart` correctly creates and displays new series/topics when data arrives.

However, if one topic stops sending data, the chart keeps the topic/series visible in the legend and internal chart state indefinitely. The old topic is not removed automatically, even after it has clearly become inactive.

At the moment, the only reliable way I have found to fully remove the topic is to clear/reset the chart data manually (for example by sending an empty array), which is too destructive because it also removes the rest of the chart history.

There should be an optional property on `ui-chart` to automatically remove inactive topics/series after a configurable timeout.

For example:

- `Remove inactive series: true/false`
- `Inactive timeout: `

This could be optional because some users may want inactive series to remain visible, while others need them removed once the source stops publishing.

This is especially important for OT / IIoT dashboards where devices, stations, or MQTT topics may stop publishing temporarily or permanently.
If the topic remains in the chart legend after it is no longer active, the chart becomes misleading because it suggests the series is still part of the live visualization.

Suggested behavior could be as bellow:
When enabled, if a series/topic has not received a new datapoint for the configured timeout, remove that series/topic from the chart legend and chart series list.
Ideally this should be done without requiring a full chart reset.

Happy to assist developing this feature.

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

I have provided 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.