Skip to content

Option to remove inactive series from legend after configurable timeout #2090

@omidteimoori

Description

@omidteimoori

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: <seconds/ms>

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNeeds looking at to decide what to do
    No fields configured for Feature.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions