# Dashboard bar chart data node not working, error

**URL:** <https://discourse.nodered.org/t/dashboard-bar-chart-data-node-not-working-error/80898>\
**Category:** General\
**Created:** [30 August 2023 01:07 UTC](https://discourse.nodered.org/t/dashboard-bar-chart-data-node-not-working-error/80898 "2023-08-30T01:07:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmystique](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rmystique/32/84365_2.png) [@rmystique](https://discourse.nodered.org/u/rmystique)\
**Post date:** [30 August 2023 01:07 UTC](https://discourse.nodered.org/t/dashboard-bar-chart-data-node-not-working-error/80898/1 "2023-08-30T01:07:35Z")

</div>

I am trying to use this node to display a chart that has my usage data but the chart displays nothing and i get the following message in the debug:  
"Error: Invalid property expression: unexpected ' ' at position 14"

here is what I have for testing:

```auto
[
    {
        "id": "841f709cfbf9de7f",
        "type": "inject",
        "z": "f672d0ac69fd5b97",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 990,
        "y": 380,
        "wires": [
            [
                "fc4e0b59e0d7bd22"
            ]
        ]
    },
    {
        "id": "4733e656fd184a6a",
        "type": "inject",
        "z": "f672d0ac69fd5b97",
        "name": "start",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "set_meter_value 53.75",
        "payloadType": "str",
        "x": 1010,
        "y": 440,
        "wires": [
            [
                "fc4e0b59e0d7bd22"
            ]
        ]
    },
    {
        "id": "1be6d39134f351ab",
        "type": "debug",
        "z": "f672d0ac69fd5b97",
        "name": "debug 14",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 420,
        "wires": []
    },
    {
        "id": "c6b4d4dedbb755bf",
        "type": "bar-chart-data",
        "z": "f672d0ac69fd5b97",
        "name": "bar-chart-data",
        "x_interval": "minutes",
        "x_size": "30",
        "unit": "kwh",
        "precision": "1",
        "is_meter_reading": "True",
        "agg_by": "sum",
        "x": 1020,
        "y": 480,
        "wires": [
            [
                "0522bde4be469f65",
                "1be6d39134f351ab"
            ]
        ]
    },
    {
        "id": "0522bde4be469f65",
        "type": "ui_chart",
        "z": "f672d0ac69fd5b97",
        "name": "",
        "group": "8ee0bb75fa4e2113",
        "order": 13,
        "width": 0,
        "height": 0,
        "label": "Power usage",
        "chartType": "bar",
        "legend": "true",
        "xformat": "D/M",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "0",
        "ymax": "24",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 1030,
        "y": 520,
        "wires": [
            []
        ]
    },
    {
        "id": "fc4e0b59e0d7bd22",
        "type": "change",
        "z": "f672d0ac69fd5b97",
        "name": "topic",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "kwh",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 830,
        "y": 480,
        "wires": [
            [
                "c6b4d4dedbb755bf"
            ]
        ]
    },
    {
        "id": "8ee0bb75fa4e2113",
        "type": "ui_group",
        "name": "Main",
        "tab": "9d03c9290d696c27",
        "order": 1,
        "disp": false,
        "width": 6,
        "collapse": false,
        "className": ""
    },
    {
        "id": "9d03c9290d696c27",
        "type": "ui_tab",
        "name": "Solar Power Stats",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

```

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [30 August 2023 06:11 UTC](https://discourse.nodered.org/t/dashboard-bar-chart-data-node-not-working-error/80898/2 "2023-08-30T06:11:05Z")

</div>

I installed node-red-contrib-bar-chart-data on Node-red v3.0.2, node.js 16.20.2  
Your flow gives no errors. No chart output either, but no error messages.

---

<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:** [29 October 2023 06:12 UTC](https://discourse.nodered.org/t/dashboard-bar-chart-data-node-not-working-error/80898/3 "2023-10-29T06:12:02Z")

</div>

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