I am working with some data that looks like this
[
{
date: '20 Apr',
maths: [70, 80.5, 100],
science: [25, 20.1, 30]
},
{
date: '21 Apr',
maths: [64, 76, 80],
science: [21, 25, 27]
},
];
My goal is to present the data in a table format with customized labels for each subject. The desired output should look like this:
date | maths | science
| min | val | max | min | val | max
20 Apr | 70 | 80.5| 100 | 25 | 20.1| 30
21 Apr | 64 | 76 | 80 | 21 | 25 | 27
I have attempted the code which can be viewed here. I am wondering if there is a way to achieve this desired output or if I need to restructure the data differently.