Just send the data in "message.payload" and the line description as "msg.topic" some nodes allow to set the msg.topic in the ui like the inject node here in the example
[{"id":"110687a8.790a58","type":"ui_group","z":"38ab2721.58fde","name":"Default","order":"1","disp":true,"width":"6"},{"id":"88f5ae81.3d8df8","type":"ui_tab","name":"Home","icon":"dashboard","order":"1"},{"id":"ff1f5ed5.cdd408","type":"inject","z":"38ab2721.58fde","name":"","topic":"LineA","payload":"","payloadType":"date","repeat":"1","crontab":"","once":true,"x":291.76666259765625,"y":130.5500030517578,"wires":[["2e5e8c66.22854c"]]},{"id":"f7ec88fc.306a48","type":"inject","z":"38ab2721.58fde","name":"","topic":"LineB","payload":"","payloadType":"date","repeat":"2","crontab":"","once":true,"x":288.76666259765625,"y":181.5500030517578,"wires":[["2e5e8c66.22854c"]]},{"id":"a389eb05.b171d","type":"inject","z":"38ab2721.58fde","name":"","topic":"LineC","payload":"","payloadType":"date","repeat":"3","crontab":"","once":true,"x":289.76666259765625,"y":242.55001831054688,"wires":[["2e5e8c66.22854c"]]},{"id":"2e5e8c66.22854c","type":"ui_chart","z":"38ab2721.58fde","tab":"88f5ae81.3d8df8","group":"110687a8.790a58","order":1,"width":"","height":"","label":"chart","name":"","interpolate":"linear","nodata":"No Data","ymin":"","ymax":"","removeOlder":1,"removeOlderUnit":"86400","x":493.7666320800781,"y":191.60000610351562,"wires":[[],[]]}]