# The size of a pie chart

**URL:** <https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [28 December 2025 13:05 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034 "2025-12-28T13:05:34Z")\
**Posts on this page:** 7\
**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:** [31 December 2025 21:53 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034/21 "2025-12-31T21:53:10Z")

</div>

OK `"name": "series_name"` is the gremlin.

This has to be the same as set in the chart config - mine is `msg.topic`, which exists but is empty.

So `"name": ""` works.

Note to self: Don't use msg.topic, use an empty string as the Series.

---

<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:** [31 December 2025 22:04 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034/22 "2025-12-31T22:04:51Z")

</div>

> [@jbudd](#):
>
> > [@Colin](#):
> >
> > Have you got client data enabled for ui-chart on that page
> 
> Sorry, I can't find this option, but I have never knowingly tampered with it.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/39986a095dd10ab287f48843242ba388c974c93f.png)

That is why refresh is clearing the chart, that is nothing to do with the recent mods. Switch it off.

> [@jbudd](#):
>
> OK `"name": "series_name"` is the gremlin.

Yes, you need to give the series a name. If you give it a name other than blank it appears in the popup tooltip on the chart. The pie chart can have multiple series in which case you have to name them of course.

So with the name and client data setting fixed is it all working as it should?

---

<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:** [31 December 2025 22:07 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034/23 "2025-12-31T22:07:44Z")

</div>

You should be able to feed in the ui\_update first, or include it with the data inject (which is the same thing actually, it does the ui\_update then the data).

---

<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:** [1 January 2026 12:10 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034/24 "2026-01-01T12:10:49Z")

</div>

> [@Colin](#):
>
> So with the name and client data setting fixed is it all working as it should?

Umm.

Yes, it is working now.

Of course I have reservations, for example to do with how the ui-chart canvas interacts with the dashboard resizing of widgets, but hard to imagine how it could behave better.

There are still some chartOptions settings that I can't get to work, work in progress.

---

<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:** [1 January 2026 12:15 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034/25 "2026-01-01T12:15:15Z")

</div>

I think there is a bug in the chart node. I am sure that doing a Restart Flows under the Deploy dropdown should clear the chart and any ui\_update settings, just like a node red restart, but it doesn't. I will have to check other node types to see how they behave to see if it is a generic issue or chart node related.

[Edit] I have asked a question about what Restart Flows should do in a [new post](https://discourse.nodered.org/t/what-should-restart-flows-do/100066).

---

<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:** [1 January 2026 12:29 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034/26 "2026-01-01T12:29:12Z")

</div>

> [@jbudd](#):
>
> There are still some chartOptions settings that I can't get to work, work in progress

The options are complex, so it is possible that some won't work. Post if you get stuck so I can try to sort it out.  
Also please post examples of how to do things that you think might be generally useful.

---

<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:** [15 January 2026 12:30 UTC](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034/27 "2026-01-15T12:30:04Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/the-size-of-a-pie-chart/100034.md?page=1)
