I'm not able to fill a Chart with my Array.
This is the Json: https://pastebin.com/KLUWqDFS
I'm trying to create a "Area" chart and fill it. Each element in the Json is half an hour.
let series = []
for(let i = 0; i < props.rrd.length; i++) {
series.push({
data: [
{
x: props.rrd[i].cpu * 100,
y: moment(props.rrd[i].time).format('hh:mm')
}
]
})
}
const chartOptions = {
yaxis: {
show: true
},
xaxis: {
show: true
}
}
This is what I'm using. Somehow all I get is this: My Result
Eventhough it should show me the last 24 hours in the chart.