xxxxxxxxxx
26
// Load the data
function preload() {
table = loadTable('data.csv', 'csv', 'header');
}
function setup() {
createCanvas(400, 300);
noLoop();
console.log(table.get(5,2));
}
function draw() {
background(220);
}
// Figure out height and width of each bar
// Loop over the dataset
// Calculate the position of each bar
// Calculate the colour of each bar
// Draw the bar