Skip to content

Chart fails if value is in, for example, msg.value rather than msg.payload #2392

Open

Description

@colinl

Current Behavior

If the data points are passed in, for example, msg.value then the chart plots msg.payload, not msg.value.

Originally reported by @Bucket1616 in #2292

Expected Behavior

No response

Steps To Reproduce

Run this flow. The charts plots constant 7 from msg.payload instead of the sin wave from msg.value.

[{"id":"1f3104f8a6cfcca1","type":"group","z":"997da33a0beedade","name":"Chart msg.value test","style":{"label":true},"nodes":["01c277aeb4c48458","98592ed89e9d3965","18904bdf13476caa","0d83f929933006f8"],"x":34,"y":7319,"w":732,"h":162},{"id":"01c277aeb4c48458","type":"inject","z":"997da33a0beedade","g":"1f3104f8a6cfcca1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":7360,"wires":[["98592ed89e9d3965"]]},{"id":"98592ed89e9d3965","type":"function","z":"997da33a0beedade","g":"1f3104f8a6cfcca1","name":"msg.value: Sine wave","func":"const min =5\nconst max = 8\nconst now = new Date().getTime()\nmsg.value = Math.sin(now*6.283/60000) * (max-min)/2 + (max+min)/2\nmsg.topic = 'sine'\nmsg.payload = 7\nreturn msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":7360,"wires":[["0d83f929933006f8","18904bdf13476caa"]]},{"id":"18904bdf13476caa","type":"ui-chart","z":"997da33a0beedade","g":"1f3104f8a6cfcca1","group":"4f87bd59a15b847e","name":"chart msg.value","label":"chart msg.value","order":4,"chartType":"line","category":"topic","categoryType":"msg","xAxisLabel":"","xAxisProperty":"","xAxisPropertyType":"timestamp","xAxisType":"time","xAxisFormat":"","xAxisFormatType":"{HH}:{mm}:{ss}","xmin":"","xmax":"","yAxisLabel":"","yAxisProperty":"value","yAxisPropertyType":"msg","ymin":"","ymax":"","bins":10,"action":"append","stackSeries":false,"pointShape":"circle","pointRadius":"3","showLegend":true,"removeOlder":"1","removeOlderUnit":"60","removeOlderPoints":"","colors":["#0095ff","#ff0000","#ff7f0e","#2ca02c","#a347e1","#d62728","#ff9896","#9467bd","#c5b0d5"],"textColor":["#346cda"],"textColorDefault":false,"gridColor":["#2dd920"],"gridColorDefault":false,"width":"4","height":"4","className":"","interpolation":"linear","x":660,"y":7360,"wires":[[]]},{"id":"0d83f929933006f8","type":"debug","z":"997da33a0beedade","g":"1f3104f8a6cfcca1","name":"debug 89","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":560,"y":7440,"wires":[]},{"id":"4f87bd59a15b847e","type":"ui-group","name":"test","page":"c6ff182a4185f2f2","width":"6","height":"1","order":1,"showTitle":true,"className":"","visible":"true","disabled":"false","groupType":"default"},{"id":"c6ff182a4185f2f2","type":"ui-page","name":"Test page","ui":"ID-BASE-1","path":"/testpage","icon":"home","layout":"grid","theme":"f9b6670b127dc219","breakpoints":[{"name":"Default","px":"0","cols":"6"},{"name":"Tablet","px":"576","cols":"6"},{"name":"Small Desktop","px":"768","cols":"9"},{"name":"Desktop","px":"1024","cols":"12"}],"order":12,"className":"","visible":"true","disabled":"false"},{"id":"ID-BASE-1","type":"ui-base","name":"Dashboard","path":"/dashboard","appIcon":"","includeClientData":true,"acceptsClientConfig":["ui-control","ui-notification"],"showPathInSidebar":false,"headerContent":"page","titleBarStyle":"default","showReconnectNotification":false,"notificationDisplayTime":"1","showDisconnectNotification":true,"allowInstall":true},{"id":"f9b6670b127dc219","type":"ui-theme","name":"CDL Theme","colors":{"surface":"#152a47","primary":"#005aff","bgPage":"#ffffff","groupBg":"#ffffff","groupOutline":"#cc3e3e"},"sizes":{"pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px","density":"default"}},{"id":"e7bd5b2327d327fe","type":"global-config","env":[],"modules":{"@flowfuse/node-red-dashboard":"1.37.0"}}]

Environment

  • Dashboard version: 1.37.0
  • Node-RED version: 5.0.9
  • Node.js version: 24.22.3
  • npm version:
  • Platform/OS: Ubuntu
  • Browser: Brave

Have you provided an initial effort estimate for this issue?

I am not a FlowFuse team member

Activity

  1. added
    needs-triage
    on Nov 22, 2026
  2. colinl commented on Nov 22, 2026

    @colinl
    CollaboratorAuthor

    I have gone back to dashboard version 1.27.0 and it does not work there, so it seems this issue has always been present. It is amazing that no-one has noticed.

  3. Bucket1616 commented on Nov 22, 2026

    @Bucket1616

    Yeah, I came across the issue in a flow and did a search for an existing issue report because I figured someone had to have come across it by now! It turns out someone did, but didn’t understand the root cause, so it kind of fizzled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions