for ( var i = 0; i < data.length; i++ ) { var dx = (colW * i) + padding; var dh = canvas.height * (data[i]/10); var dy = canvas.height - (dataHeight-1); context.fillRect( dx, dy, colW-2*padding, dh ); context.strokeRect( dx, dy, colW-2*padding, dh ); }

for ( var i = 0; i < data.length; i++ ) { context.beginPath(); context.arc(data[i].x, data.y, 10, 0, Math.PI*2, false); context.fill(); context.stroke(); }