This project takes you through building a data visualization of COVID19 data from Johns Hopkins University from start to finish, usingjs. In this project, you'll learn how to process data to pull out relevant information, structure the data for visualizing, use JavaScript's map and filter methods, use D3.js's scale functions, and more. You'll practice your JavaScript skills while creating a visualization to help you and others understand real world data affecting everyone right now.
Welcome! This video describes what you'll be doing in this project, and what you need to know in order to get started. By the end you'll be ready to go.
Create the HTML for the page, and link to the resources. You can download D3.js for this course, or just link to the online resource.
Read the CSV data into your application using D3, and display it in the console for inspection. You'll have a good understanding of the data by the end of this section.
Compute the start and end dates of the data set so we can scale the date axis of the graph correctly. You'll learn how to use map and filter to pull out the data we need, and how to use the spread operator.
Sort the data so we can find the countries with the top 10 number of COVID19 cases.
Structure the data so it is appropriate for graphing by creating a parallel array with just the data we need.
Find the maximum number of cases to scale the y axis of the graph.
Create the graph axes using D3.js, and size the graph to the page. Use scale functions to map from the data to the width and height of the graph.
Add a line to the graph for each of the top 10 countries, scaling the data for the graph.
Use D3.js's color sets and scaling functions to map data to colors.
Add the final touch: a tool tip that displays when the user mouses over a line of data on the graph. You'll learn how to use D3 to position the tooltip on the page and show and hide the tooltip.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.