// HTML and CSS_style to go here.

// init src="d3/d3.js"

// size of the captable.svg bars

var w = 500;
var h = 100;
var barPadding = 1; 

// insert source captable data here

// create SVG element for making a bar chart

var svg = d3.select("body")
    .append("svg")
    .attr("width", w)
    .attr("height", h);

svg.selectAll("rect")
    .data(dataset)
    .enter()
    .append("rect")
    .attr("x", function(d, i) {
	return i * (w / dataset.length);
})
    .attr("y", function(d) {
	return h - d;
})
    .attr("width", w / dataset.length - barPadding)
    .attr("height", function(d) {
	return d;
});

//  we would need to add colour.

//  we would need to show data values as well. add text elements to svg



@@ -637,16 +637,91 @@
 olour.%0A%0A
+    .attr(%22fill%22. function(d) %7B%0A%09return %22rgb(0, 0, %22 + (d *10) + %22)%22;%0A%7D);%0A%0A
 //  we w

translate data into colour