# Dashboard 2.0 ui-chart - Don't show the Legend

**URL:** <https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326>\
**Category:** Dashboard\
**Tags:** dashboard-2, ui-chart\
**Created:** [6 February 2026 15:14 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326 "2026-02-06T15:14:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergii](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Sergii](https://discourse.nodered.org/u/Sergii)\
**Post date:** [6 February 2026 15:14 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/1 "2026-02-06T15:14:53Z")

</div>

I need to place some lines and other information on a chart that doesn't require a legend to be displayed. For example, these upper and lower limits are two lines. But the legend must be for other lines.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5efe5182e041e7f9ad575fdedaff2f56086cf83c.png)  
Here I would like to remove the "min" and "max" labels Legend, but leave their lines, and leave the label Voltage.  
I tried passing different parameters to _msg.ui\_update.chartOptions_ but it doesn't work. Is it possible to do this or not?

---

<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 February 2026 16:32 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/2 "2026-02-07T16:32:18Z")

</div>

I haven't tried it but I think something like this may work

```auto
msg.ui_update = {chartOptions: {legend: {data: ['Voltage']}}}

```

Only the series listed in the array should show a legend.

---

<div class="post-metadata">

**Author:** ![Sergii](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Sergii](https://discourse.nodered.org/u/Sergii)\
**Post date:** [7 February 2026 21:50 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/3 "2026-02-07T21:50:25Z")

</div>

Thank you!  
It worked! But how could I have guessed this before? I couldn't find any information. Google's AI said something like:

```auto
"title": {"display": false}

```

```auto
legend: { display: false }

```

None of this worked.

---

<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 February 2026 22:13 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/4 "2026-02-07T22:13:23Z")

</div>

The Brave browser AI gave me the answer. The docs for options.legend.data do give some clues to how to do it.

---

<div class="post-metadata">

**Author:** ![Sergii](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Sergii](https://discourse.nodered.org/u/Sergii)\
**Post date:** [7 February 2026 23:03 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/5 "2026-02-07T23:03:30Z")

</div>

> [@Colin](#):
>
> The docs for options.legend.data

What file are you talking about? Can you provide a link?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 February 2026 23:29 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/6 "2026-02-07T23:29:35Z")

</div>

> [@Sergii](#):
>
> how could I have guessed this

I'm afraid it's complicated.

For anyone not getting answers from the all mighty AI (suprise suprise), the [docs](https://dashboard.flowfuse.com/nodes/widgets/ui-chart#chart-customisation) do mention the how to perform runtime configuration updates:

> `msg.ui_update.chartOptions`. Any of the options defined in the [eCharts Documentation](https://echarts.apache.org/en/option.html) may be set...

I.e. the information is there!

However I totally appreciate this requires a leap of faith. It is such a difficult balance of keeping things (like the chart node settings) lean & mean for low-code purposes vs presenting hundreds of options vs what to leave to documentation.

Hope that helps.

---

<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:** [8 February 2026 17:06 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/8 "2026-02-08T17:06:07Z")

</div>

The eCharts docs are extensive but not complete, unfortunately. For [legend.data](https://echarts.apache.org/en/option.html#legend.data) it does not explicitly say that if you have an array of series names it will show legends for those present and not for the rest. You have to read between the lines to work that out.

---

<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:** [22 February 2026 17:06 UTC](https://discourse.nodered.org/t/dashboard-2-0-ui-chart-dont-show-the-legend/100326/9 "2026-02-22T17:06:53Z")

</div>

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