Skip to content

Dynamic Chart options grow unrestricted #2012

@Steve-Mcl

Description

@Steve-Mcl

Current Behavior

If every chart input payload contains ui_update.chartOptions, the internal dynamicChartOptions array grows uncontrolled.

This will eventually affect UX due to how they are looped...

                        this.dynamicChartOptions.forEach((options) => {
                            this.chart.setOption(options)
                        })

Expected Behavior

should consolidate options array

Steps To Reproduce

send a lot of messages with the controlOptions set (even if they contain the exact same option value)

Environment

  • Dashboard version: latest/live
  • Node-RED version:
  • Node.js version:
  • npm version:
  • Platform/OS:
  • Browser:

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNeeds looking at to decide what to do

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions