May 12 - ZohairDaniel/CovidSite GitHub Wiki
Today I went ahead and started the data graph for the data page. I went ahead and created a canvas and drew rectangles on it using the ctx.fillrect function. This will allow me to draw rectangles on the canvas. I use data from John Hopkins University and multiply the number of cases by 0.0002 to shrink the number so that it can be drawn on a canvas. All numbers all multiplied by 0.0002 so they are proportionally equal. I also created a label for each of the data rows that include the countries name and number of cases alongside it. I used the length of the data row and added two, this allowed me to place the label a little to the right of each of the graphs.