xxxxxxxxxx
36
let countries;
function preload(){
countries = loadTable('time_series_19-covid-Deaths.csv','csv','header')
}
function setup() {
createCanvas(600, 400);
}
function draw() {
background(0);
let Rows = countries.getRowCount();
let latitude = countries.getColumn('Lat');
let longitude = countries.getColumn('Long');
let death_day = countries.getColumn('3/12/20');
for(x=0;x<Rows; x++){
stroke(7000);
fill(225,0,150,20);
let pointX=map(longitude[x],-200,200,0,width);
let pointY=map(latitude[x],-200,200,0,height);
point(pointX,pointY,death_day[x]);
}
}