# Chart Legend Refresh

**URL:** <https://discourse.nodered.org/t/chart-legend-refresh/11731>\
**Category:** Dashboard\
**Created:** [31 May 2019 14:02 UTC](https://discourse.nodered.org/t/chart-legend-refresh/11731 "2019-05-31T14:02:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/baqwas/32/106_2.png) [@baqwas](https://discourse.nodered.org/u/baqwas)\
**Post date:** [31 May 2019 14:02 UTC](https://discourse.nodered.org/t/chart-legend-refresh/11731/1 "2019-05-31T14:02:58Z")

</div>

Hello,

The Legend in a Line Chart retains labels for data no longer being streamed (in my flows under v0.20.5). Is this by design or am I _ignorant_ of some refresh capability? I had six feeds into a single chart but now I have only three. Yet the labels for the three that were dropped still appear. I've trimmed the time axis but had no success (three unneeded labels take up precious real estate on the dashboard).

Thanks.

---

<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:** [31 May 2019 14:43 UTC](https://discourse.nodered.org/t/chart-legend-refresh/11731/2 "2019-05-31T14:43:10Z")

</div>

not that I'm aware of - once there they are held just in case they return later.

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/baqwas/32/106_2.png) [@baqwas](https://discourse.nodered.org/u/baqwas)\
**Post date:** [31 May 2019 17:57 UTC](https://discourse.nodered.org/t/chart-legend-refresh/11731/3 "2019-05-31T17:57:15Z")

</div>

Thanks for the quick feedback.

I'll create new line charts and then delete the old ones. (I had eight topics previously as I incrementally tweaked the chart; now I need only three - one was an _accidental_ feed from a motion sensor; presumably I was sleepy when I did that!).

Regards.

---

<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:** [31 May 2019 18:03 UTC](https://discourse.nodered.org/t/chart-legend-refresh/11731/4 "2019-05-31T18:03:37Z")

</div>

Restarting the server would clear everything from memory

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/baqwas/32/106_2.png) [@baqwas](https://discourse.nodered.org/u/baqwas)\
**Post date:** [11 June 2019 14:30 UTC](https://discourse.nodered.org/t/chart-legend-refresh/11731/5 "2019-06-11T14:30:14Z")

</div>

Hello,

Sorry I couldn't get back to you in time (unplanned offline). I did precisely what you have suggested before posting the question because that was the natural solution in my mind but it didn't work. I switched off the legend in the interim just to view the charts with greater clarity.

I've changed the time period to 24 hours and rebooted again. Allow me let the server run for another 24 hours and then I will turn on the legend again and report back to you.

King regards.

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/baqwas/32/106_2.png) [@baqwas](https://discourse.nodered.org/u/baqwas)\
**Post date:** [13 June 2019 19:45 UTC](https://discourse.nodered.org/t/chart-legend-refresh/11731/6 "2019-06-13T19:45:14Z")

</div>

Thanks again for your suggestion that works now!

I let the system run for more than 24 hours after reducing the time window to one day, rebooted, turned on the legend and _without further rebooting_ only the active data series were tracked in the legend.

I must have done **something** wrong previously when I started this thread.

Kind regards.
