# Average Bar node issues

**URL:** <https://discourse.nodered.org/t/average-bar-node-issues/79074>\
**Category:** Dashboard\
**Tags:** dashboard\
**Created:** [9 June 2023 08:35 UTC](https://discourse.nodered.org/t/average-bar-node-issues/79074 "2023-06-09T08:35:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![colin0031](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin0031/32/85027_2.png) [@colin0031](https://discourse.nodered.org/u/colin0031)\
**Post date:** [9 June 2023 08:35 UTC](https://discourse.nodered.org/t/average-bar-node-issues/79074/1 "2023-06-09T08:35:16Z")

</div>

Hello,

I have started using average bar node and found many issues,

1)When I choose "last month" in X axis and tried to push 4 values:  
a) It shows minimum and average the same values without bar as shown in picture

 ![Average bar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a39d3d7cf09042f0a8f921a8861d3ebc432257ef.jpeg)

Another time after deploying it without any changes it shows like this. So this node doesnt seems to be stable. Did someone ever worked with it??

 ![Average bar issues](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/9256059dacc490c1a05b100f51d6b99a3fd66076.jpeg)

```auto
[
    {
        "id": "bc6bf97a001539c8",
        "type": "average-bars",
        "z": "146ab432f501375f",
        "name": "average-bars",
        "title": "",
        "period": "week",
        "yMin": "auto",
        "yMax": "auto",
        "showBarsValue": true,
        "showScaleValue": true,
        "showLastValue": true,
        "showAverageValue": true,
        "showMinimumValue": true,
        "showMaximumValue": true,
        "maxBar": 30,
        "topColor": "#ff0000",
        "bottomColor": "#ffff00",
        "unit": "",
        "fontColor": "#aaaaaa",
        "barStyle": "Rectangle",
        "decimal": "2",
        "x": 790,
        "y": 4500,
        "wires": [
            [
                "827a0a7c30e1dddf",
                "a098a5951e098acc"
            ]
        ]
    },
    {
        "id": "827a0a7c30e1dddf",
        "type": "ui_template",
        "z": "146ab432f501375f",
        "group": "dfd1615b66a4acd3",
        "name": "",
        "order": 1,
        "width": 0,
        "height": 0,
        "format": "<div ng-bind-html=\"msg.payload\"></div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 1020,
        "y": 4520,
        "wires": [
            [
                "a098a5951e098acc"
            ]
        ]
    },
    {
        "id": "1b71e9fd46711d53",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "10",
        "payloadType": "num",
        "x": 490,
        "y": 4500,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "4aad7abbfe808983",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2",
        "payloadType": "num",
        "x": 490,
        "y": 4560,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "be23e54eb2218f88",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "23",
        "payloadType": "num",
        "x": 490,
        "y": 4620,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "c65b07f9a4a8d73e",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "38",
        "payloadType": "num",
        "x": 490,
        "y": 4680,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "723ba1797d6c764f",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "clear",
        "payloadType": "str",
        "x": 680,
        "y": 4640,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "a098a5951e098acc",
        "type": "debug",
        "z": "146ab432f501375f",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1030,
        "y": 4400,
        "wires": []
    },
    {
        "id": "dfd1615b66a4acd3",
        "type": "ui_group",
        "name": "chart",
        "tab": "6ea35cc8fc451d69",
        "order": 4,
        "disp": true,
        "width": "15",
        "collapse": false,
        "className": ""
    },
    {
        "id": "6ea35cc8fc451d69",
        "type": "ui_tab",
        "name": "UR mine",
        "icon": "dashboard",
        "order": 48,
        "disabled": false,
        "hidden": false
    }
]

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 June 2023 09:04 UTC](https://discourse.nodered.org/t/average-bar-node-issues/79074/2 "2023-06-09T09:04:01Z")

</div>

Is that [GitHub - nazcasun/node-red-contrib-dashboard-average-bars: Calculate and display the average values of msg.payload in a bar chart.](https://github.com/nazcasun/node-red-contrib-dashboard-average-bars)?

If so, it has not been updated in 5 years and appears to be no longer supported by the author. It may be that it just does not work any more. Probably you should find a different solution.

---

<div class="post-metadata">

**Author:** ![colin0031](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin0031/32/85027_2.png) [@colin0031](https://discourse.nodered.org/u/colin0031)\
**Post date:** [9 June 2023 09:19 UTC](https://discourse.nodered.org/t/average-bar-node-issues/79074/3 "2023-06-09T09:19:08Z")

</div>

Oh oke. Do you have any suggestions or an alternative solution to find min, max and avg value and to show it in a graph?

I monitoring temperatures from every joint(6 axis robot) and i have 5 robots.  
So basically i need to monitor 30 values for a month.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 June 2023 09:28 UTC](https://discourse.nodered.org/t/average-bar-node-issues/79074/4 "2023-06-09T09:28:11Z")

</div>

I would store the data in Influxdb and then use Grafana for complex charts. Alternatively you could fetch it from influx in node-red and display it using the standard dashboard chart. Influx queries can give you the min, max and average values.

---

<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:** [9 July 2023 09:29 UTC](https://discourse.nodered.org/t/average-bar-node-issues/79074/5 "2023-07-09T09:29:05Z")

</div>

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