table = loadTable('https://deckard.openprocessing.org/user3417/visual1603117/h10f780e448780b603afd4b5119bd76b5/investimentoop2.csv',
table2 = loadTable('https://deckard.openprocessing.org/user3417/visual1603117/h10f780e448780b603afd4b5119bd76b5/investimentoop.csv',
createCanvas(windowWidth,windowHeight);
print(table.getRowCount() + ' total rows in table');
print(table.getColumnCount() + ' total columns in table');
for (let r = 0; r < table.getRowCount(); r++)
for (let c = 0; c < table.getColumnCount(); c++) {
if(r==1) print(table.getString(r, c));
print(table.getString(1, 0));
print(table.getNum(1, 5));
print(table.getString(2, 0));
print(table.getNum(2, 5));
let dataAreaMax = PI*(pow(width/2,2));
let ajusteTela = width*20;
let areaME2018 = map(table.getNum(1, anima),0,1400000000,0,dataAreaMax)/ajusteTela;
let areaMT2018 = map(table.getNum(2, anima),0,1400000000,0,dataAreaMax)/ajusteTela;
let raio=sqrt(areaME2018/PI);
let raio2=sqrt(areaMT2018/PI);
ellipse(width/4,height/2,raio*2,raio*2);
text(table.getString(1,0),width/4,height*0.7);
text(table2.getString(1,anima),width/4,height*0.8);
ellipse(width-width/4,height/2,raio2*2,raio2*2);
text(table.getString(2,0),width-width/4,height*0.7);
text(table2.getString(2,anima),width-width/4,height*0.8);
text(table.getString(0,anima),width/2,height*0.3);
anima= floor(3+sin(millis()*0.00018)*2.5);
anima=constrain(anima,1,5);