xxxxxxxxxx
22
// Load the data
function preload() {
table = loadTable('data.csv', 'csv', 'header');
}
function setup() {
createCanvas(700, 400);
background(220)
console.log(table.get(0,1))
// Figure out the height and width of each bar
// Loop over the data
// Calculate the position of the bar
// Calculate the colour of the bar
// Draw a bar
}