source: [view]
if(!this.data){ return this; }
var step = this.width / this.data.length, org = 0,
depth = this.depth == "auto" ? step - 2 * this.gap : this.depth,
scale = this.height / reduce(this.data, Math.max);
if(!creator){ creator = chart.view; }
for(var i = 0; i < this.data.length; ++i, org += step){
creator
.createCube({
bottom: {x: org + this.gap, y: 0, z: 0},
top: {x: org + step - this.gap, y: this.data[i] * scale, z: depth}
})
.setFill(this.material);
}