Skip to content

Dashboard ui-chart does not render injected data with {x, y} format #2004

@JorgeAlberto91MS

Description

@JorgeAlberto91MS

Current Behavior

Charts injected with the following data format are not rendered in the Node-RED dashboard:

[{
"series": ["A", "B", "C"],
"data": [
[
{ "x": 1504029632890, "y": 5 },
{ "x": 1504029636001, "y": 4 },
{ "x": 1504029638656, "y": 2 }
],
[
{ "x": 1504029633514, "y": 6 },
{ "x": 1504029636622, "y": 7 },
{ "x": 1504029639539, "y": 6 }
],
[
{ "x": 1504029634400, "y": 7 },
{ "x": 1504029637959, "y": 7 },
{ "x": 1504029640317, "y": 7 }
]
],
"labels": [""]
}]

When this payload is injected into a ui-chart node, the chart remains empty and no data is displayed.

Additional information

Image

Expected Behavior

The chart should correctly render multiple series using timestamp-based x values and numeric y values, as documented.

Steps To Reproduce

Inyect data in format described or Import https://dashboard.flowfuse.com/nodes/widgets/ui-chart#line-charts examples

Environment

  • Dashboard version: 1.30.0 or 1.30.1
  • Node-RED version: 3.02
  • Node.js version: v14.20.0
  • npm version: v6.14.17
  • Platform/OS: Linux
  • Browser: Chromium

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