table = loadTable('https://deckard.openprocessing.org/user3417/visual1603117/h10f780e448780b603afd4b5119bd76b5/investimentoop2.csv',
table2 = loadTable('https://deckard.openprocessing.org/user3417/visual1603117/h10f780e448780b603afd4b5119bd76b5/investimentoop.csv',
print(table.getRowCount() + ' total rows in table');
print(table.getColumnCount() + ' total columns in table');
print(table.getColumn('2022'));
for (let r = 0; r < table.getRowCount(); r++)
for (let c = 0; c < table.getColumnCount(); c++) {
if(r==0) print(table.getString(r, c));
print(table.getString(0, 0));
print(table.getNum(0, 5));
print(table.getString(1, 0));
print(table.getNum(1, 5));
let dataAreaMax = PI*(pow(width/2,2));
let areaME2018 = map(table.getNum(0, 5),0,1400000000,0,dataAreaMax)/10000;
let areaMT2018 = map(table.getNum(1, 5),0,1400000000,0,dataAreaMax)/10000;
let raio=sqrt(areaME2018/PI);
let raio2=sqrt(areaMT2018/PI);
ellipse(width/4,height/2,raio*2,raio*2);
ellipse(width-width/4,height/2,raio2*2,raio2*2);
text(table.getString(0,0),width/4,height*0.7);
text(table2.getString(0,5),width/4,height*0.8);
text(table.getString(1,0),width-width/4,height*0.7);
text(table2.getString(1,5),width-width/4,height*0.8);
text(2018,width/2,height*0.3);