I'd like to use this github repository which comes from William Candillon as a reference to my project. My goal is to create a line graph that displays the average number of cases in USA every day. I want the graph to plot these data points for every single date. I also would like to the graph switcher in the example repository to switch between graphs displaying weekly, monthly and yearly average cases. How can I do this using the repository? Any and all help is appreciated :)
This json provides all the average cases in the US for every day.
Data.json
[ {"date": "2020-01-21","geoid": "USA","cases": 1,"cases_avg": 0.14,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-22","geoid": "USA","cases": 0,"cases_avg": 0.14,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-23","geoid": "USA","cases": 0,"cases_avg": 0.14,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-24","geoid": "USA","cases": 1,"cases_avg": 0.29,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-25","geoid": "USA","cases": 1,"cases_avg": 0.43,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-26","geoid": "USA","cases": 2,"cases_avg": 0.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-27","geoid": "USA","cases": 0,"cases_avg": 0.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-28","geoid": "USA","cases": 0,"cases_avg": 0.57,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-29","geoid": "USA","cases": 0,"cases_avg": 0.57,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-30","geoid": "USA","cases": 1,"cases_avg": 0.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-01-31","geoid": "USA","cases": 1,"cases_avg": 0.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-01","geoid": "USA","cases": 1,"cases_avg": 0.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-02","geoid": "USA","cases": 3,"cases_avg": 0.86,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-03","geoid": "USA","cases": 0,"cases_avg": 0.86,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-04","geoid": "USA","cases": 0,"cases_avg": 0.86,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-05","geoid": "USA","cases": 1,"cases_avg": 1,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-06","geoid": "USA","cases": 0,"cases_avg": 0.86,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-07","geoid": "USA","cases": 0,"cases_avg": 0.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-08","geoid": "USA","cases": 0,"cases_avg": 0.57,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-09","geoid": "USA","cases": 0,"cases_avg": 0.14,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-10","geoid": "USA","cases": 1,"cases_avg": 0.29,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-11","geoid": "USA","cases": 0,"cases_avg": 0.29,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-12","geoid": "USA","cases": 1,"cases_avg": 0.29,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-13","geoid": "USA","cases": 1,"cases_avg": 0.43,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-14","geoid": "USA","cases": 0,"cases_avg": 0.43,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-15","geoid": "USA","cases": 0,"cases_avg": 0.43,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-16","geoid": "USA","cases": 0,"cases_avg": 0.43,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-17","geoid": "USA","cases": 10,"cases_avg": 1.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-18","geoid": "USA","cases": 0,"cases_avg": 1.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-19","geoid": "USA","cases": 0,"cases_avg": 1.57,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-20","geoid": "USA","cases": 2,"cases_avg": 1.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-21","geoid": "USA","cases": 3,"cases_avg": 2.14,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-22","geoid": "USA","cases": 0,"cases_avg": 2.14,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-23","geoid": "USA","cases": 0,"cases_avg": 2.14,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-24","geoid": "USA","cases": 13,"cases_avg": 2.57,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-25","geoid": "USA","cases": 2,"cases_avg": 2.86,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-26","geoid": "USA","cases": 15,"cases_avg": 5,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-27","geoid": "USA","cases": 0,"cases_avg": 4.71,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-28","geoid": "USA","cases": 5,"cases_avg": 5,"cases_avg_per_100k": 0,"deaths": 0,"deaths_avg": 0,"deaths_avg_per_100k": 0 }, {"date": "2020-02-29","geoid": "USA","cases": 5,"cases_avg": 5.71,"cases_avg_per_100k": 0,"deaths": 1,"deaths_avg": 0.14,"deaths_avg_per_100k": 0 }, {"date": "2020-03-01","geoid": "USA","cases": 18,"cases_avg": 8.29,"cases_avg_per_100k": 0,"deaths": 2,"deaths_avg": 0.43,"deaths_avg_per_100k": 0 }, {"date": "2020-03-02","geoid": "USA","cases": 16,"cases_avg": 8.71,"cases_avg_per_100k": 0,"deaths": 3,"deaths_avg": 0.86,"deaths_avg_per_100k": 0 }, {"date": "2020-03-03","geoid": "USA","cases": 21,"cases_avg": 11.43,"cases_avg_per_100k": 0,"deaths": 4,"deaths_avg": 1.43,"deaths_avg_per_100k": 0 }, {"date": "2020-03-04","geoid": "USA","cases": 36,"cases_avg": 14.43,"cases_avg_per_100k": 0,"deaths": 2,"deaths_avg": 1.71,"deaths_avg_per_100k": 0 }, {"date": "2020-03-05","geoid": "USA","cases": 67,"cases_avg": 24,"cases_avg_per_100k": 0.01,"deaths": 0,"deaths_avg": 1.71,"deaths_avg_per_100k": 0 }, {"date": "2020-03-06","geoid": "USA","cases": 83,"cases_avg": 35.14,"cases_avg_per_100k": 0.01,"deaths": 3,"deaths_avg": 2.14,"deaths_avg_per_100k": 0 }, {"date": "2020-03-07","geoid": "USA","cases": 117,"cases_avg": 51.14,"cases_avg_per_100k": 0.02,"deaths": 4,"deaths_avg": 2.57,"deaths_avg_per_100k": 0 }, {"date": "2020-03-08","geoid": "USA","cases": 119,"cases_avg": 65.57,"cases_avg_per_100k": 0.02,"deaths": 3,"deaths_avg": 2.71,"deaths_avg_per_100k": 0 }, {"date": "2020-03-09","geoid": "USA","cases": 201,"cases_avg": 92,"cases_avg_per_100k": 0.03,"deaths": 4,"deaths_avg": 2.86,"deaths_avg_per_100k": 0 }, {"date": "2020-03-10","geoid": "USA","cases": 270,"cases_avg": 127.57,"cases_avg_per_100k": 0.04,"deaths": 5,"deaths_avg": 3,"deaths_avg_per_100k": 0 }, {"date": "2020-03-11","geoid": "USA","cases": 245,"cases_avg": 157.43,"cases_avg_per_100k": 0.05,"deaths": 6,"deaths_avg": 3.57,"deaths_avg_per_100k": 0 }, {"date": "2020-03-12","geoid": "USA","cases": 405,"cases_avg": 205.71,"cases_avg_per_100k": 0.06,"deaths": 6,"deaths_avg": 4.43,"deaths_avg_per_100k": 0 }, {"date": "2020-03-13","geoid": "USA","cases": 556,"cases_avg": 273.29,"cases_avg_per_100k": 0.08,"deaths": 7,"deaths_avg": 5,"deaths_avg_per_100k": 0 }, {"date": "2020-03-14","geoid": "USA","cases": 674,"cases_avg": 352.86,"cases_avg_per_100k": 0.11,"deaths": 10,"deaths_avg": 5.86,"deaths_avg_per_100k": 0 }, {"date": "2020-03-15","geoid": "USA","cases": 702,"cases_avg": 436.14,"cases_avg_per_100k": 0.13,"deaths": 8,"deaths_avg": 6.57,"deaths_avg_per_100k": 0 }, {"date": "2020-03-16","geoid": "USA","cases": 907,"cases_avg": 537,"cases_avg_per_100k": 0.16,"deaths": 23,"deaths_avg": 9.29,"deaths_avg_per_100k": 0 }, {"date": "2020-03-17","geoid": "USA","cases": 1399,"cases_avg": 698.29,"cases_avg_per_100k": 0.21,"deaths": 26,"deaths_avg": 12.29,"deaths_avg_per_100k": 0 }, {"date": "2020-03-18","geoid": "USA","cases": 2444,"cases_avg": 1012.43,"cases_avg_per_100k": 0.31,"deaths": 45,"deaths_avg": 17.86,"deaths_avg_per_100k": 0.01 }, {"date": "2020-03-19","geoid": "USA","cases": 4043,"cases_avg": 1532.14,"cases_avg_per_100k": 0.46,"deaths": 50,"deaths_avg": 24.14,"deaths_avg_per_100k": 0.01 }, {"date": "2020-03-20","geoid": "USA","cases": 5619,"cases_avg": 2255.43,"cases_avg_per_100k": 0.68,"deaths": 65,"deaths_avg": 32.43,"deaths_avg_per_100k": 0.01 }, {"date": "2020-03-21","geoid": "USA","cases": 6516,"cases_avg": 3090,"cases_avg_per_100k": 0.93,"deaths": 83,"deaths_avg": 42.86,"deaths_avg_per_100k": 0.01 },...]