# Hide msg.topic in chart

**URL:** <https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382>\
**Category:** General\
**Created:** [10 January 2022 09:54 UTC](https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382 "2022-01-10T09:54:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Majklzbastlirny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/majklzbastlirny/32/53916_2.png) [@Majklzbastlirny](https://discourse.nodered.org/u/Majklzbastlirny)\
**Post date:** [10 January 2022 09:54 UTC](https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382/1 "2022-01-10T09:54:28Z")

</div>

Hey there  
I need help hiding msg.topic in chart. WeatherStation/Voltage: in screenshot.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/0954ea81d32f7c452a468a0c013284127a874b7e.png).  
I just need it to show time and payload.

Thanks in advance

(There is probably answer for this question, but language barrier is preventing me from finding it)

---

<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:** [10 January 2022 10:30 UTC](https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382/2 "2022-01-10T10:30:21Z")

</div>

Add a `debug ` node (set to display the complete msg object) to the output of the node sending the data to the chart. Deploy the flow and expand rhe debug output and copy/paste it to a reply

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

[https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

---

<div class="post-metadata">

**Author:** ![Majklzbastlirny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/majklzbastlirny/32/53916_2.png) [@Majklzbastlirny](https://discourse.nodered.org/u/Majklzbastlirny)\
**Post date:** [10 January 2022 10:56 UTC](https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382/3 "2022-01-10T10:56:32Z")

</div>

Here it is.  
{"topic":"WeatherStation/Voltage","payload":"6.07","qos":0,"retain":false,"\_topic":"WeatherStation/Voltage","\_msgid":"a6363657b641c1b6"}

or here is screenshot  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b6986336b432475503ab2f87cb7c1b6d32590749.png)

---

<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:** [10 January 2022 11:12 UTC](https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382/4 "2022-01-10T11:12:14Z")

</div>

Is this the only line on the chart? If so then try adding a Change node before the chart and use it to Set msg.topic to an empty string. I think that should work, though it will still show the `:` I think. Alternatively, in the Change node set the topic to something like `V` so that it will display `V: 67.05` which you might find preferable.

---

<div class="post-metadata">

**Author:** ![Majklzbastlirny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/majklzbastlirny/32/53916_2.png) [@Majklzbastlirny](https://discourse.nodered.org/u/Majklzbastlirny)\
**Post date:** [10 January 2022 11:15 UTC](https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382/5 "2022-01-10T11:15:03Z")

</div>

Yes. It works!  
Thank you so much!

---

<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:** [24 January 2022 11:15 UTC](https://discourse.nodered.org/t/hide-msg-topic-in-chart/56382/6 "2022-01-24T11:15:36Z")

</div>

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