# Multiple lines in 1 chart

**URL:** <https://discourse.nodered.org/t/multiple-lines-in-1-chart/45649>\
**Category:** Dashboard\
**Created:** [14 May 2021 13:54 UTC](https://discourse.nodered.org/t/multiple-lines-in-1-chart/45649 "2021-05-14T13:54:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![menno](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@menno](https://discourse.nodered.org/u/menno)\
**Post date:** [14 May 2021 13:54 UTC](https://discourse.nodered.org/t/multiple-lines-in-1-chart/45649/1 "2021-05-14T13:54:55Z")

</div>

hi NR girls and guys

i have an issue with getting multiple lines in one (1 ) chart  
my code see below

i just want to get these CPU snmp IOD stats in one ( 1 ) chart  
i hope some one can help me out here

many thanks

```auto

[{"id":"ef643cce.77476","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.1","timeout":5,"name":"mw-vmware system CPU 1","x":380,"y":260,"wires":[["c0bceb1f.9f6af8"]]},{"id":"c0bceb1f.9f6af8","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":260,"wires":[["99d3e1fb.35c71"]]},{"id":"d6587bf7.f76698","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.2","timeout":5,"name":"mw-vmware system CPU 2","x":380,"y":300,"wires":[["2568d3bb.afa26c"]]},{"id":"70478665.83e738","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.3","timeout":5,"name":"mw-vmware system CPU 3","x":380,"y":340,"wires":[["cc635dda.34342"]]},{"id":"6eeb5bf0.47e404","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.4","timeout":5,"name":"mw-vmware system CPU 4","x":380,"y":380,"wires":[["a8252a82.b57b78"]]},{"id":"2ab2135b.3349dc","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.5","timeout":5,"name":"mw-vmware system CPU 5","x":380,"y":420,"wires":[["8287efce.00cd4"]]},{"id":"62c9164d.be3098","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.6","timeout":5,"name":"mw-vmware system CPU 6","x":380,"y":460,"wires":[["6fdf588b.8b3208"]]},{"id":"6e6f0e4c.b9efe","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.7","timeout":5,"name":"mw-vmware system CPU 7","x":380,"y":500,"wires":[["946174f2.df0888"]]},{"id":"2f707e48.7d4f92","type":"snmp","z":"fb05f098.39386","host":"192.168.1.202","community":"public","version":"1","oids":"1.3.6.1.2.1.25.3.3.1.2.8","timeout":5,"name":"mw-vmware system CPU 8","x":380,"y":540,"wires":[["177a98f6.dcf757"]]},{"id":"ce9ccfdc.6499e","type":"inject","z":"fb05f098.39386","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":400,"wires":[["ef643cce.77476","d6587bf7.f76698","70478665.83e738","6eeb5bf0.47e404","2ab2135b.3349dc","62c9164d.be3098","6e6f0e4c.b9efe","2f707e48.7d4f92"]]},{"id":"2568d3bb.afa26c","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":300,"wires":[["3f833c5f.3591c4"]]},{"id":"cc635dda.34342","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":340,"wires":[["9210f73b.645298"]]},{"id":"a8252a82.b57b78","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":380,"wires":[["86b71a56.c25898"]]},{"id":"8287efce.00cd4","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":420,"wires":[["eba2b5fe.1f0308"]]},{"id":"6fdf588b.8b3208","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":460,"wires":[["2d821c82.018914"]]},{"id":"946174f2.df0888","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":500,"wires":[["4f0c786.9b2af88"]]},{"id":"177a98f6.dcf757","type":"change","z":"fb05f098.39386","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":540,"wires":[["29b93002.6e464"]]},{"id":"99d3e1fb.35c71","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":1,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":260,"wires":[[]]},{"id":"3f833c5f.3591c4","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":2,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":300,"wires":[[]]},{"id":"9210f73b.645298","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":5,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":340,"wires":[[]]},{"id":"86b71a56.c25898","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":4,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":380,"wires":[[]]},{"id":"eba2b5fe.1f0308","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":8,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":420,"wires":[[]]},{"id":"2d821c82.018914","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":7,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":460,"wires":[[]]},{"id":"4f0c786.9b2af88","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":6,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":500,"wires":[[]]},{"id":"29b93002.6e464","type":"ui_chart","z":"fb05f098.39386","name":"","group":"cd751725.bfc8d8","order":3,"width":10,"height":3,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":890,"y":540,"wires":[[]]},{"id":"cd751725.bfc8d8","type":"ui_group","name":"vmware","tab":"409d3a00.df4ca4","order":4,"disp":true,"width":20,"collapse":false},{"id":"409d3a00.df4ca4","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<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:** [14 May 2021 14:25 UTC](https://discourse.nodered.org/t/multiple-lines-in-1-chart/45649/2 "2021-05-14T14:25:20Z")

</div>

You need to feed both sets of messages into one chart if you want both lines in the chart. Make sure that the two sets of messages have different topics.

---

<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:** [13 June 2021 14:25 UTC](https://discourse.nodered.org/t/multiple-lines-in-1-chart/45649/3 "2021-06-13T14:25:45Z")

</div>

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