Chart Data Progress
OK, so I abandoned the DataSeries dojo object. It was not very well documented and failing all the time. So I did this, which I am pretty pumped about:
testData2 = [
{ name: "Development",
data: [1000,1000,1000,1000,1000,1000,1000,1000] },
{ name: "Test Site 1",
data: [1000,1100,1200,1300,1400,1500,1600,1700] },
{ name: "Product #1",
data: [1000,1200,1500,4000,4000,4000,4000,4000] },
{ name: "Test Site 2",
data: [5000,3000,0,0,0,0,0,0] },
];
// Other code omitted.
dojo.forEach( testData2, function(row,index){
chart.addSeries(row.name,row.data);
});
Comments
Post a Comment