所以我用多个系列制作了我的图表但由于某种原因我只能突出显示已制作的第一张图表。 该数组采用以下格式:
Date, value1, value2
1, 10, null
2, null, 20
Can't embed images yet so here's a link
for (arg in arguments){
//data = arguments[arg][0];
for(timestamp in arguments[arg][0]){
data = [];
if (arguments[arg][0][timestamp] != "NaN"){
data.push(new Date(timestamp*1000));
}
pos = arg+1
for(c in arguments){
if(c == arg){
// put value into data
if (arguments[arg][0][timestamp] != "NaN") {
data.push(Number(arguments[arg][0][timestamp]));
}
}
else{
data.push(null);
}
}
if (arguments[arg][0][timestamp] != "NaN"){
waarden.push(data);
}
}
}