# How to control chart, configured as pie?

**URL:** <https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715>\
**Category:** Dashboard\
**Created:** [4 April 2026 16:25 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715 "2026-04-04T16:25:28Z")\
**Posts on this page:** 14\
**Page:** 2

<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:** [13 April 2026 09:27 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/21 "2026-04-13T09:27:26Z")

</div>

It's not an ideal situation but Colin has done a lot to get the chart widget working, including the ability to tweek it via ui\_update.

I think the failure of the legend to display unless something is in Series is a non-positive feature of the underlying code library.

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [13 April 2026 09:34 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/22 "2026-04-13T09:34:15Z")

</div>

@jbudd and @Colin,

I tested @Colin 's "Inject" node, but it did not work for me, in spite of changing the value in the "Inject" node.

I think, I leave it for the moment and move to a standard gauge, that has been proposed earlier.

Both of you, thanks for all your efforts and investment of time.

Regards

---

<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:** [13 April 2026 10:17 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/23 "2026-04-13T10:17:22Z")

</div>

> [@FireWizard52](#):
>
> I tested @Colin 's "Inject" node, but it did not work for me, in spite of changing the value in the "Inject" node.

What do you mean 'it didn't work'. Did it do anything? Did you try clicking the inject node? What happens if you set the 65 to 10?

---

<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:** [13 April 2026 10:44 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/24 "2026-04-13T10:44:57Z")

</div>

Also restart Node-red and clear your browser cache after changing chart settings.

(Full deploy in Node-red is not sufficient.  
At the client side, Ctrl-F5 to reload the page might be enough, clearing the cache is safest.)

---

<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:** [13 April 2026 11:05 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/25 "2026-04-13T11:05:45Z")

</div>

For me, clearing the cache is rarely necessary. It is sometimes necessary to restart node red, though, if refreshing the page is not enough.

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [13 April 2026 17:13 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/26 "2026-04-13T17:13:06Z")

</div>

Hi @Colin

> [@Colin](#):
>
> What do you mean 'it didn't work'.

Sorry, I had to be more precise.

With 'it didn´t work', I mean that it was not the solution.  
It gave exactly the same result as before (without the legend)

> Did it do anything?

Yes, I think it did once.  
This probably related to the config of the Inject node?

> Did you try clicking the inject node

Yes, of course, otherwise I would not need an 'Inject' node 🙂

> What happens if you set the 65 to 10?

I did not use 10, but I used 50 and then 40.  
But will try with 10.  
I will report later.

@jbudd

> Also restart Node-red and clear your browser cache after changing chart settings.

I did. It was necessary, because after trying @Colin's "Inject" node, the work aroud with  
the empty string in "Series did not work anymore.

I do some more test now and report back.

Regards

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [13 April 2026 17:44 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/27 "2026-04-13T17:44:35Z")

</div>

@Colin

I did some more tests with a clean flow.

1. Radius 65%, as created by you  
Result: Legend and texts are visible. So what is expected.

2. New data injected  
Result as above Okay

3. Cleared the widget.  
Result: Widget cleared.

4. New data injected  
Result: Legend is visible, but lower test (freemem) is missing.  
The new data "Inject" gives a doughnut instead of a pie  
Re-Inject your "Inject" node did not solve this.

5. Changed radius to 10% from 65%^ followed by a NR restart  
Result as 4

Whatever I do now, I do not get a pie, always a doughnut.

Is there anything I can try? Anything you want to know?

I have decided to focus on the classic gauge node: [node-red-dashboard-2-ui-gauge-classic (node) - Node-RED](https://flows.nodered.org/node/@colinl/node-red-dashboard-2-ui-gauge-classic)  
I assume you are familiar with that 😉

Regards

---

<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:** [13 April 2026 18:44 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/28 "2026-04-13T18:44:37Z")

</div>

A doughnut shape indicates that the chart thinks it is dealing with two (or more) series, one of them may be left over from a previous test.

If the widget has "series" set to a space, restart node- red and clear the browser cache.

I found it best not to "append" data sets but to "overwrite", which is why i previously suggested you should combine readings into a single message as an array of objects.

It may help to send an empty array before each inject to clear the chart.

Sending msg.ui\_update options is not a one-time thing, it needs to be added to every message.

---

<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:** [13 April 2026 19:05 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/29 "2026-04-13T19:05:47Z")

</div>

> [@jbudd](#):
>
> Sending msg.ui\_update options is not a one-time thing, it needs to be added to every message.

Yes it is a one off. You should not send it with every message, otherwise the browser will eventually clog up.

---

<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:** [13 April 2026 20:16 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/30 "2026-04-13T20:16:22Z")

</div>

> [@FireWizard52](#):
>
> I have decided to focus on the classic gauge node: [node-red-dashboard-2-ui-gauge-classic (node) - Node-RED](https://flows.nodered.org/node/@colinl/node-red-dashboard-2-ui-gauge-classic)

An excellent choice I think, though the default gauge would also be ok.

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [6 May 2026 13:13 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/31 "2026-05-06T13:13:41Z")

</div>

Hi @Colin,

You said:

> An excellent choice I think, though the default gauge would also be ok.

As I already used the classic gauge nodes for displaying CPU Temperatures, I think that this gauge node gives a better look than the default one.

 ![ScreenshotNRDB2MemoryUsage1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3fb7f5b57913f013a18425a36fe4d13a413891af.png)

The only thing, I think is pity, that the classic gauge uses a standard font for the label, while the defautt nodes use a **bold** font.

 ![ScreenshotNRDB2MemoryUsage2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2e4874eef1f70744d35b529f3822ae130965b870.png)

If you use both on a page, you'll get a messy appearance.

Regards

---

<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:** [6 May 2026 16:51 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/32 "2026-05-06T16:51:07Z")

</div>

The class of the label for the classic chart is `.cl-gauge .label` so you should be able to provide a css override to format it however you like.

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [11 May 2026 17:14 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/33 "2026-05-11T17:14:22Z")

</div>

Good evening @Colin

Thanks for your response.

Successful implemented.

 ![ScreenshotNRDB2MemoryUsage3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/4/34d6434dbb48c4421f3aa8b4c66b5c6d5bd7bd1d.png)

Regards

---

<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:** [10 June 2026 17:14 UTC](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715/34 "2026-06-10T17:14:47Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/how-to-control-chart-configured-as-pie/100715.md?page=1)
