# Seeing all topics after switch?

**URL:** https://discourse.nodered.org/t/seeing-all-topics-after-switch/87523
**Category:** General
**Created:** [26 April 2024 14:27 UTC](https://discourse.nodered.org/t/seeing-all-topics-after-switch/87523 "2024-04-26T14:27:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mem16421](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mem16421](https://discourse.nodered.org/u/mem16421)
#### Post date: [26 April 2024 14:27 UTC](https://discourse.nodered.org/t/seeing-all-topics-after-switch/87523/1 "2024-04-26T14:27:43Z")

</div>

I have a flow where I do a split which gives me 12 topics. I then run the output through a switch node where I have rules to match 10 of the 12. I have verified the value of each switch output and it's only the value of the topic. Where it gets odd is I send the switch output to a chart node and the chart displays all 12 topics on the legend? Any suggestions on why it is doing this?

In the attachments I cut it down to 4 topics, but it still shows all on the chart

 ![netflow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/f/bf56f077a00fa2ddea30ee8cdb3cd441e6d519e5.png)  
 ![netflowchart](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e5d33e2103370a4be5cbf0df666b6dbf0da1fa50.png)

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [26 April 2024 14:37 UTC](https://discourse.nodered.org/t/seeing-all-topics-after-switch/87523/2 "2024-04-26T14:37:35Z")

</div>

Have you previously sent the other topics to the chart ?

It will "remember" any topics that are sent, so if you only want to see data from 1 then you may need to clear the data first.

Inputting a `msg.payload` containing a blank array `[]` will clear the chart.

---

<div class="post-metadata">

### Author: ![mem16421](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mem16421](https://discourse.nodered.org/u/mem16421)
#### Post date: [26 April 2024 14:43 UTC](https://discourse.nodered.org/t/seeing-all-topics-after-switch/87523/3 "2024-04-26T14:43:49Z")

</div>

Thanks, that did it! I was thinking down that path, and disabled and reenabled the flow to think it would have reset the chart, but your fix worked!

---

<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 May 2024 14:44 UTC](https://discourse.nodered.org/t/seeing-all-topics-after-switch/87523/4 "2024-05-10T14:44:22Z")

</div>

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