I have time series data in a database that looks like this:
[
{
min: 100,
max: 200,
avg: 150,
time: 12345678.. (unix timestamp)
},
{
min: ..
...
}, ...
]
I am able to draw a line chart using the avg value by pulling it from the database as data points such as:
[
{
t: 12345678... (unix timestamp)
y: 150 (avg value)
},...
]
What I am trying to achieve is drawing three lines for min, max and avg respectively with the same dataset as:
[
{
t: 12345678... (unix timestamp),
y1: 150 (avg value),
y2: 100 (min value),
y3: 200 (max value)
},...
]
I have tried looking at documentation and many questions here but did not find a lead. I can separate the datasets but normally I am processing a lot of data on the backend and wanted to see if this can be done without any further processing. Want to know if this is achievable or it's chart.js' limitation?