- size(500, 500);
- for (int x = 40; x <=400 ; x = x+40) {
- for(int y = 40; y<=400; y = y+40) {
- rect(x, y,40, 40);
- }
- }
- strokeWeight(3);
- line(40, 40, 40, 440);
- line(40, 440, 440, 440);
- strokeWeight(2);
- fill(#B7AA16);
- rect(40, 400,140, 40);
- fill(#B2A516);
- rect(40, 360,200, 40);
- fill(#A59912);
- rect(40, 320,160, 40);
- fill(#9B8F10);
- rect(40, 280,130, 40);
- fill(#958B0F);
- rect(40, 240,260, 40);
- fill(#897F0F);
- rect(40, 200,180, 40);
- fill(#81770D);
- rect(40, 160,300, 40);
- fill(#6F670C);
- rect(40, 120,350, 40);
- fill(0);
- text('0', 40, 460);
- text("50", 80, 460);
- text("100", 120, 460);
- text("150", 160, 460);
- text("200", 200, 460);
- text("250", 240, 460);
- text("300", 280, 460);
- text("350", 320, 460);
- text("400", 360, 460);
- text("450", 400, 460);
- strokeWeight(6);
- text("NO OF DEATHS", 200, 485);
- strokeWeight(1);
- text("2022", 10, 150);
- text("2021", 10, 190);
- text("2020", 10, 230);
- text("2019", 10, 270);
- text("2018", 10, 310);
- text("2017", 10, 350);
- text("2016", 10, 390);
- text("2015", 10, 430);
- strokeWeight(10);
- text("YEAR", 10, 20);
- strokeWeight(10);
- text("Water Contamination", 180, 25);