# Dashboard chart not working, kindly guide me

**URL:** <https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559>\
**Category:** Dashboard\
**Created:** [12 May 2022 12:48 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559 "2022-05-12T12:48:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeetaJ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/neetaj/32/60934_2.png) [@NeetaJ](https://discourse.nodered.org/u/NeetaJ)\
**Post date:** [12 May 2022 12:48 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/1 "2022-05-12T12:48:45Z")

</div>

```auto
[{
        "id": "e042b1095671b729",
        "type": "tab",
        "label": "Flow 3",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "18674fce1d363044",
        "type": "function",
        "z": "e042b1095671b729",
        "name": "Query",
        "func": "msg.query=`from(bucket:\"sensorcommunity\")\n |> range(start: -15m)\n \n |>filter(fn: (r) => r[\"_field\"] == \"SDS_P1\")\n`;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 270,
        "y": 120,
        "wires": [
            [
                "6d4e20f9b85c6041"
            ]
        ]
    },
    {
        "id": "6d4e20f9b85c6041",
        "type": "influxdb in",
        "z": "e042b1095671b729",
        "influxdb": "bd87715beebbeb83",
        "name": "Influx_Read",
        "query": "",
        "rawOutput": false,
        "precision": "",
        "retentionPolicy": "",
        "org": "b9409948a4fed525",
        "x": 430,
        "y": 120,
        "wires": [
            [
                "b2d18bc3aa3d1161"
            ]
        ]
    },
    {
        "id": "e70e6bc695947231",
        "type": "function",
        "z": "e042b1095671b729",
        "name": "",
        "func": "\nmsg.payload=[{\n \"series\": msg.payload._field,\n \"data\":[\n [{\n x:msg.payload._time,\n y:msg.payload._value\n }]\n ] ,\n \"labels\": msg.payload.node \n}];\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 120,
        "wires": [
            [
                "fb8c0f23c612a0fd"
            ]
        ]
    },
    {
        "id": "b2d18bc3aa3d1161",
        "type": "split",
        "z": "e042b1095671b729",
        "name": "",
        "splt": "",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 630,
        "y": 120,
        "wires": [
            [
                "e70e6bc695947231"
            ]
        ]
    },
    {
        "id": "91bcbf07a30d4c8d",
        "type": "http in",
        "z": "e042b1095671b729",
        "name": "",
        "url": "/localdata",
        "method": "get",
        "upload": false,
        "swaggerDoc": "",
        "x": 100,
        "y": 180,
        "wires": [
            [
                "18674fce1d363044"
            ]
        ]
    },
    {
        "id": "53f3dea90cb5e8c4",
        "type": "inject",
        "z": "e042b1095671b729",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 100,
        "y": 60,
        "wires": [
            [
                "18674fce1d363044"
            ]
        ]
    },
    {
        "id": "fb8c0f23c612a0fd",
        "type": "join",
        "z": "e042b1095671b729",
        "name": "",
        "mode": "auto",
        "build": "object",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "num",
        "reduceFixup": "",
        "x": 950,
        "y": 120,
        "wires": [
            [
                "b2e9a8a361268c66",
                "db3b9b9fb0b1b2c9"
            ]
        ]
    },
    {
        "id": "b2e9a8a361268c66",
        "type": "ui_chart",
        "z": "e042b1095671b729",
        "name": "Sensor data",
        "group": "b1d9d1fa.350a38",
        "order": 0,
        "width": 0,
        "height": 0,
        "label": "chart",
        "chartType": "line",
        "legend": "false",
        "xformat": "auto",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "15",
        "removeOlderPoints": "",
        "removeOlderUnit": "60",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": true,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "Hello",
        "x": 1110,
        "y": 120,
        "wires": [
            []
        ]
    },
    {
        "id": "db3b9b9fb0b1b2c9",
        "type": "debug",
        "z": "e042b1095671b729",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1050,
        "y": 200,
        "wires": []
    },
    {
        "id": "bd87715beebbeb83",
        "type": "influxdb",
        "hostname": "127.0.0.1",
        "port": "8086",
        "protocol": "http",
        "database": "database",
        "name": "Influx_Read",
        "usetls": false,
        "tls": "",
        "influxdbVersion": "2.0",
        "url": "http://localhost:8086/",
        "rejectUnauthorized": true
    },
    {
        "id": "b1d9d1fa.350a38",
        "type": "ui_group",
        "name": "Sensor data for SDS_P1",
        "tab": "74a6b63b93228b16",
        "order": 1,
        "disp": true,
        "width": "12",
        "collapse": false,
        "className": ""
    },
    {
        "id": "74a6b63b93228b16",
        "type": "ui_tab",
        "name": "SDS_P1",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

```

This is flow and it seems to be not working. I want to display the data from influx db into chart dashboard.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/4/245f25fa52175e7e3b59110bd259e698779a0490.png)

This is the output from chart and msg.payload after join node and nothing seems to appear on ui

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/8/c848a80bd405fb35a0ec2cbdc66cebd21a96b2fa.png)

Kindly assist me to resolve this issue

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [12 May 2022 14:08 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/2 "2022-05-12T14:08:00Z")

</div>

You might find this helpful:

[Using the Node-Red Chart Node (stevesnoderedguide.com)](https://stevesnoderedguide.com/using-the-node-red-chart-node)

---

<div class="post-metadata">

**Author:** ![NeetaJ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/neetaj/32/60934_2.png) [@NeetaJ](https://discourse.nodered.org/u/NeetaJ)\
**Post date:** [12 May 2022 16:26 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/3 "2022-05-12T16:26:23Z")

</div>

Hi,  
Thanks Orio for reply. I have followed the same and i see that only one plot appears on the chart.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/3/d3cacb1253c63d71f6805dd2a737256ee7d3082b.png)

It should show all the plots.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 May 2022 16:33 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/4 "2022-05-12T16:33:32Z")

</div>

The format of the payload array is incorrect you should have a 1 element array holding an object. data should be an array holding an array of objects, your series should be an array as with labels to.  
if you can not work out the format, supply the message that the influx node returns and i will adjust your function.

---

<div class="post-metadata">

**Author:** ![NeetaJ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/neetaj/32/60934_2.png) [@NeetaJ](https://discourse.nodered.org/u/NeetaJ)\
**Post date:** [12 May 2022 19:05 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/5 "2022-05-12T19:05:14Z")

</div>

```auto
[{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:05:15.0865392Z","_value":48.42,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:07:45.0218181Z","_value":81.4,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:10:14.5521682Z","_value":65.85,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:12:42.5606925Z","_value":59.33,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:15:12.6778044Z","_value":58.75,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:17:41.8193016Z","_value":51.92,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:20:20.1056028Z","_value":37.88,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:22:49.6376651Z","_value":36.7,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:25:17.6146564Z","_value":38.57,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:27:46.2195899Z","_value":33.53,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:30:17.4936244Z","_value":30.33,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:32:45.5159769Z","_value":25.35,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:35:14.6828361Z","_value":22.3,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:37:45.2932887Z","_value":21.63,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:40:17.4437818Z","_value":16.55,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:42:45.6687685Z","_value":17.77,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:45:14.4037645Z","_value":14.02,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:47:43.5560794Z","_value":30.8,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:50:14.750786Z","_value":14.67,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:52:43.0015517Z","_value":12.88,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:55:11.1681924Z","_value":12.8,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:57:42.0031186Z","_value":10.9,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T19:00:13.4289277Z","_value":12.55,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T19:02:41.5306587Z","_value":10.07,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"}]

```

Hello @E1cid ,

This is result of influx node.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 May 2022 19:34 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/6 "2022-05-12T19:34:45Z")

</div>

try this, no need for split and join.

```auto
[{"id":"53f3dea90cb5e8c4","type":"inject","z":"e042b1095671b729","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:05:15.0865392Z\",\"_value\":48.42,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:07:45.0218181Z\",\"_value\":81.4,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:10:14.5521682Z\",\"_value\":65.85,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:12:42.5606925Z\",\"_value\":59.33,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:15:12.6778044Z\",\"_value\":58.75,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:17:41.8193016Z\",\"_value\":51.92,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:20:20.1056028Z\",\"_value\":37.88,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:22:49.6376651Z\",\"_value\":36.7,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:25:17.6146564Z\",\"_value\":38.57,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:27:46.2195899Z\",\"_value\":33.53,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:30:17.4936244Z\",\"_value\":30.33,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:32:45.5159769Z\",\"_value\":25.35,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:35:14.6828361Z\",\"_value\":22.3,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:37:45.2932887Z\",\"_value\":21.63,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:40:17.4437818Z\",\"_value\":16.55,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:42:45.6687685Z\",\"_value\":17.77,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:45:14.4037645Z\",\"_value\":14.02,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:47:43.5560794Z\",\"_value\":30.8,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:50:14.750786Z\",\"_value\":14.67,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:52:43.0015517Z\",\"_value\":12.88,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:55:11.1681924Z\",\"_value\":12.8,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T18:57:42.0031186Z\",\"_value\":10.9,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T19:00:13.4289277Z\",\"_value\":12.55,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"},{\"result\":\"_result\",\"table\":0,\"_start\":\"2022-05-12T18:04:02.5208492Z\",\"_stop\":\"2022-05-12T19:04:02.5208492Z\",\"_time\":\"2022-05-12T19:02:41.5306587Z\",\"_value\":10.07,\"_field\":\"SDS_P1\",\"_measurement\":\"datapoints\",\"node\":\"esp8266-5206363\"}]","payloadType":"json","x":370,"y":120,"wires":[["e70e6bc695947231"]]},{"id":"e70e6bc695947231","type":"function","z":"e042b1095671b729","name":"","func":"\nmsg.payload=[{\n \"series\": [msg.payload[0]._field],\n \"data\":[msg.payload.map(obj => {\n return {\n x: obj._time,\n y: obj._value\n }\n })\n],\n \"labels\": [msg.payload[0].node] \n}];\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":800,"y":120,"wires":[["b2e9a8a361268c66"]]},{"id":"b2e9a8a361268c66","type":"ui_chart","z":"e042b1095671b729","name":"Sensor data","group":"b1d9d1fa.350a38","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"auto","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"15","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"useUTC":true,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"Hello","x":1110,"y":120,"wires":[[]]},{"id":"b1d9d1fa.350a38","type":"ui_group","name":"Sensor data for SDS_P1","tab":"74a6b63b93228b16","order":1,"disp":true,"width":"12","collapse":false,"className":""},{"id":"74a6b63b93228b16","type":"ui_tab","name":"SDS_P1","icon":"dashboard","disabled":false,"hidden":false}]

```

```auto
msg.payload=[{
    "series": [msg.payload[0]._field],
    "data":[ msg.payload.map(obj => {
        return {
        x: obj._time,
        y: obj._value
        }
    })
        ],
    "labels": [msg.payload[0].node] 
}];
return msg;

```

 ![chrome_screenshot_1652385285988](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/8/9882b455155e9de0d9f0f664379e493d41fff073.png)

---

<div class="post-metadata">

**Author:** ![NeetaJ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/neetaj/32/60934_2.png) [@NeetaJ](https://discourse.nodered.org/u/NeetaJ)\
**Post date:** [12 May 2022 20:13 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/7 "2022-05-12T20:13:04Z")

</div>

> [@NeetaJ](#):
>
> `[{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:05:15.0865392Z","_value":48.42,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:07:45.0218181Z","_value":81.4,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:10:14.5521682Z","_value":65.85,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:12:42.5606925Z","_value":59.33,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:15:12.6778044Z","_value":58.75,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:17:41.8193016Z","_value":51.92,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:20:20.1056028Z","_value":37.88,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:22:49.6376651Z","_value":36.7,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:25:17.6146564Z","_value":38.57,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:27:46.2195899Z","_value":33.53,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:30:17.4936244Z","_value":30.33,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:32:45.5159769Z","_value":25.35,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:35:14.6828361Z","_value":22.3,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:37:45.2932887Z","_value":21.63,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:40:17.4437818Z","_value":16.55,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:42:45.6687685Z","_value":17.77,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:45:14.4037645Z","_value":14.02,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:47:43.5560794Z","_value":30.8,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:50:14.750786Z","_value":14.67,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:52:43.0015517Z","_value":12.88,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:55:11.1681924Z","_value":12.8,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T18:57:42.0031186Z","_value":10.9,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T19:00:13.4289277Z","_value":12.55,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"},{"result":"_result","table":0,"_start":"2022-05-12T18:04:02.5208492Z","_stop":"2022-05-12T19:04:02.5208492Z","_time":"2022-05-12T19:02:41.5306587Z","_value":10.07,"_field":"SDS_P1","_measurement":"datapoints","node":"esp8266-5206363"}]`

Thank you so much. It works

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 May 2022 20:13 UTC](https://discourse.nodered.org/t/dashboard-chart-not-working-kindly-guide-me/62559/8 "2022-05-26T20:13:24Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
