I am working with an object that has the following structure;
{
SensorA: [
{ id: 122, valueA: 345, "x-axis": 123344 },
{ id: 123, valueA: 125, "x-axis": 123344 },
{ id: 123, valueA: 185, "x-axis": 123344 },
{ id: 121, valueA: 95, "x-axis": 121344 },
{ id: 121, valueA: 125, "x-axis": 123144 }
],
SensorB: [
{ id: 222, valueB: 785, "x-axis": 122344 },
{ id: 223, valueB: 485, "x-axis": 123394 },
{ id: 221, valueB: 432, "x-axis": 123344 }
],
SensorN: [
{ id: 782, valueN: 295, "x-axis": 123344 },
{ id: 786, valueN: 895, "x-axis": 133344 },
{ id: 782, valueN: 755, "x-axis": 122245 },
{ id: 786, valueN: 295, "x-axis": 128844 }
]
}
Each array key contains objects with a similar structure. For example, SensorB has objects with a valueB property and so on. I want to create a dynamic card that displays a multiline chart of data from similar sensors. While I can envision how this can be achieved, I need help structuring the code and HTML for it. Can anyone assist me in this matter? Please refer to the following image for an illustration of the desired outcome: