Gargi Patil

Gargi Patil

  • NA
  • 63
  • 3.9k

How to create multiple data channels in a SampleDataSeries?

May 14 2021 8:30 AM
Hi! I am using LightningChart as the graphing library for my project and I would like to know if there is a way to plot data from multiple streams onto the same graph.
 
To explain better, I have data coming in from a sensor array consisting of multiple sensors like so:
 
"SensorData" : { "Sensor1" : {"power": 12, "offset": 30 },
"Sensor2" : {"power": 14, "offset": 40 },
"Sensor3" : {"power": 13, "offset": 35 },
"Sensor4" : {"power": 22, "offset": 10 },
"Sensor5" : {"power": 15, "offset": 42 }, ... }
 
I would like to plot this onto a single chart "surface" as such. It's okay if it overlaps as well, but I would prefer that each data stream has its own y-axis range at least.
 
I have tried setting up a dashboard, but that ended up not being something feasible for many input streams.
 
Thanks for your time!