var Bar = function(){
}
Bar.prototype.drawBar = function(obj){
}
var bars = [];// Creating array
for (i = 0;i < ar.length ;i++){
bars[i] = [new Bar(ar[i],i)]; // Creating array of objects
bars[i].drawBar(i);// I am looking for something like this, Currently it doesn't work
}
我有这样的东西,我如何绘制条形图,给出参考/索引,它应该用测量值绘制