# Series Colors on Pie Chart

**URL:** <https://discourse.nodered.org/t/series-colors-on-pie-chart/2519>\
**Category:** Dashboard\
**Created:** [23 August 2018 17:33 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519 "2018-08-23T17:33:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [23 August 2018 17:33 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/1 "2018-08-23T17:33:53Z")

</div>

How can I set the series color on my pie chart? I have changed the colors in the chart node configuration.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/db260cf4f9323f5495c25815ef69968301c18e03.png)  
I am getting a chart that does not reflect my changes. I even restarted node-red.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c902fa5fd8562dd977c5597f7ef374696ca718f7.png)

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [23 August 2018 17:50 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/2 "2018-08-23T17:50:40Z")

</div>

The colors are assigned per order or arrival, this means if you have set the order of the screenshoot first message will be on green whatever it is, with or without relation to the real topic or label.

Make a search on the forum as we discussed time ago on another post about this and most probably will help u to understand.

Regards

Look here:

> [@Input order in the Chart node](https://discourse.nodered.org/t/input-order-in-the-chart-node/1213/12):
>
> Hello Charles You told me you wanted to ensure as soon as the system is started or deployed. In order to do that if you see at start I set all flow variables to off to initiate the sequence on this part: [image] If you wanted this to happen also when you push on delete the data you just need to wire this also from wherever you use to clean the chart to set to "off" again the variables. like this on the example flow I gave you: [image] This will restart the sequence on the same way that ha…

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [23 August 2018 17:56 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/3 "2018-08-23T17:56:36Z")

</div>

Hi Dave,  
I understand that is based on the order of arrival. My question is why the colors do not match from the first screenshot to the second screenshot?

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [23 August 2018 18:02 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/4 "2018-08-23T18:02:53Z")

</div>

You are totally right..... there is some bug... I have tested and had the same than you

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7ec2d2ff6d8a7bbf5b232d1bf33dd8099674f81f.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5e50f51dc08f877f49cb0e99eab83a7c7283b9a1.png)

Let see if some admin see the post and tell you hoy to report it.

Regards

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [23 August 2018 18:04 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/5 "2018-08-23T18:04:50Z")

</div>

Your test looks like it is working. I will restart node-red again.

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [23 August 2018 18:38 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/6 "2018-08-23T18:38:54Z")

</div>

Restarting node red didn't work for me. Thanks for testing anyway.

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [23 August 2018 19:01 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/7 "2018-08-23T19:01:15Z")

</div>

Everything is matching now. Crazy!😆

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 August 2018 19:31 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/8 "2018-08-23T19:31:00Z")

</div>

which version of dashboard are you using ?  
There was a fix in this area in version 2.9.4.  
If more recent do you have an example flow you can share to demo the problem ? Thanks

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [23 August 2018 19:38 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/9 "2018-08-23T19:38:01Z")

</div>

I have version 2.9.1. I do not know how to update anything while it is running on a Windows machine.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 August 2018 19:44 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/10 "2018-08-23T19:44:19Z")

</div>

Either just re-install it via the command line - or use the menu - manage palette entry to find it and update it.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/fc2b9b5e37696779bef539bf777925058dd0bb30.png)

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [23 August 2018 19:56 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/11 "2018-08-23T19:56:50Z")

</div>

I have not tried to restart but at first attempt I had exactly the same running on a Pi with dash version 2.9.4

Regards

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 August 2018 20:13 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/12 "2018-08-23T20:13:09Z")

</div>

It could have been a browser caching issue....

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [24 August 2018 11:31 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/13 "2018-08-24T11:31:58Z")

</div>

This is what I am now experiencing.

Initial loading of UI:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0338203fcd42df10b5cab4051975f1e8ce3b3aa9.png)

After I refresh the browser:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b6f78b82b25f3c59637940a07eb4270a90e5e8dc.png)

I will go ahead and update to the latest version. How do I handle browser caching?

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 August 2018 11:47 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/14 "2018-08-24T11:47:50Z")

</div>

You might have to look at the preferences.

- Chrome (on a mac) you need to go to Preferences -\> Advanced -\> Privacy and security and you will see th e option at the bottom.
- Safari go to preferences -\> Advanced and at the bottom check the box 'Show Develop menu in menu bar' then you will have a new tab 'Develop' and one of the options is 'Empty Caches'
- FireFox go to Preferences-\>Privacy & Security -\> Cookies and Site Data and you will find the option

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [24 August 2018 12:38 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/15 "2018-08-24T12:38:10Z")

</div>

I cleared the cache and it fixed it. Thank you!

---

<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:** [24 August 2018 12:46 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/16 "2018-08-24T12:46:06Z")

</div>

> [@arneym](#):
>
> How do I handle browser caching?

Usually Ctrl+F5 will force a full reload of the page, ignoring anything already in the cache.

---

<div class="post-metadata">

**Author:** ![arneym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arneym/32/54_2.png) [@arneym](https://discourse.nodered.org/u/arneym)\
**Post date:** [24 August 2018 13:16 UTC](https://discourse.nodered.org/t/series-colors-on-pie-chart/2519/17 "2018-08-24T13:16:33Z")

</div>

Yes, after refreshing the page, it ignored the cache. I went ahead and cleared the cache so that I do not need to refresh the browser. I have a lot of kiosks that I would need to refresh after the weekend. 😅  
I will just need to clear the cache if I change anything major.

Thanks,  
Mike
