# Using dashboard chart node but chart label is set but disappers?

**URL:** <https://discourse.nodered.org/t/using-dashboard-chart-node-but-chart-label-is-set-but-disappers/95833>\
**Category:** General\
**Created:** [7 March 2025 04:54 UTC](https://discourse.nodered.org/t/using-dashboard-chart-node-but-chart-label-is-set-but-disappers/95833 "2025-03-07T04:54:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jibun-no-Kage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jibun-no-kage/32/99316_2.png) [@Jibun-no-Kage](https://discourse.nodered.org/u/Jibun-no-Kage)\
**Post date:** [7 March 2025 04:54 UTC](https://discourse.nodered.org/t/using-dashboard-chart-node-but-chart-label-is-set-but-disappers/95833/1 "2025-03-07T04:54:57Z")

</div>

OK, this issue has me wondering! I am sending two series to a dashboard chart node, that is working just fine, I happen to be enabling the legend, that is fine. But as part of the msg object I am also sending a property named 'site' and setting the chart label to '{{msg.site}}'... this does work, but it disappears once the chart finishing updating, i.e. displaying the payload, which is the two series.

Here is what I am sending to the chart node... SITE is a const to a string that is name of flow variable, of course...

```auto
{site: `Site ${flow.get(SITE)}`, payload: theChart}

```

So msg.site = what is in flow.get(SITE), and payload is of course a valid object structure to show stored data. The 'theDown' and the 'theUp' variables are the x and y values, as per the stored data requirement for chart to plot values as needed of course.

```auto
const theChart = [
    {
        "series": ["Down", "Up"],
        "data": [
            theDown,
            theUp
        ],
        "labels":[
            "Down",
            "Up"
        ]
    }
]

```

As I note above, theChart object structure is accepted by the chart node just fine, my series are display, but once the chart node finishes updating, the label once set by msg.site disappears.

The only thing I can think of is that I need to add some property to the 'theChart' structure? What should that be if so?

---

<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:** [7 March 2025 08:33 UTC](https://discourse.nodered.org/t/using-dashboard-chart-node-but-chart-label-is-set-but-disappers/95833/2 "2025-03-07T08:33:52Z")

</div>

Can you post a complete simple flow that we can use to see the problem? Use inject or function nodes to create the data.

---

<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:** [5 June 2025 08:34 UTC](https://discourse.nodered.org/t/using-dashboard-chart-node-but-chart-label-is-set-but-disappers/95833/3 "2025-06-05T08:34:32Z")

</div>

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