We may earn an affiliate commission when you visit our partners.
Elisabeth Robson

Welcome to How to Visualize Data with JavaScript. In this project, join Elisabeth Robson to learn how to incorporate data visualization into your web skills using simple JavaScript along with HTML and CSS. Elisabeth will take you through building an interactive visualization using data downloaded from NOAA, reading data into a web page, adding the data to an HTML table with JavaScript code, adding color to the visualization with JavaScript and CSS, and using a little jQuery to help make selecting and updating elements in the page easy.Pre-requisites

Read more

Welcome to How to Visualize Data with JavaScript. In this project, join Elisabeth Robson to learn how to incorporate data visualization into your web skills using simple JavaScript along with HTML and CSS. Elisabeth will take you through building an interactive visualization using data downloaded from NOAA, reading data into a web page, adding the data to an HTML table with JavaScript code, adding color to the visualization with JavaScript and CSS, and using a little jQuery to help make selecting and updating elements in the page easy.Pre-requisites

To successfully complete this project, we recommend that you have some background in You don't need to be an expert by any means, but you should have experience building web pages with HTML and CSS, and you should have basic programming skills with JavaScript.

Learning Path

  • Head First HTML and CSS

  • Head First JavaScript Programming (Chapters 1-6)

  • How jQuery Works: The Basics

  • This course: How to Visualize Data with JavaScript

Enroll now

What's inside

Syllabus

Get set up with everything you need to complete this project.

Welcome to How to Visualize Data with JavaScript. In this project, join Elisabeth Robson to learn how to incorporate data visualization into your web skills using simple JavaScript along with HTML and CSS. Elisabeth will take you through building an interactive visualization using data downloaded from NOAA, reading data into a web page, adding the data to an HTML table with JavaScript code, adding color to the visualization with JavaScript and CSS, and using a little jQuery to help make selecting and updating elements in the page easy.

We've created a workbook to accompany this course, which you'll find below. Please download and look through it before you begin; we'll be returning to individual sections throughout the course for more information and exercises.

Pre-requisites

To successfully complete this project, we recommend that you have some background in HTML, CSS, and JavaScript. You don't need to be an expert by any means, but you should have experience building web pages with HTML and CSS, and you should have basic programming skills with JavaScript.

Learning Path

  • Head First HTML and CSS

  • Head First JavaScript Programming (Chapters 1-6)

  • How jQuery Works: The Basics (https://learn.jquery.com/about-jquery/how-jquery-works/)

  • This course: How to Visualize Data with JavaScript

Read more

Elisabeth takes a look at some examples of visualizations, and talks about the key components of the visualization you'll be building.

Do the Work: Explore Visualizations of Climate Change Data

It's time to take a closer look at the data so we understand the numbers we're working with before we visualize them. Join Elisabeth as she steps you through the data from NOAA and explains what it means.

Do the Work: Explore the Data

Get everything you need to work on this project, including the JavaScript jQuery library and the data we'll be using to create the visualization.

Resources

Get the source CSV data from NOAA: https://www.ncdc.noaa.gov/cag/global/time-series/globe/land_ocean/p12/12/1880-2017.csv

Get the code files (html, js, json): https://github.com/bethrobson/CCC/tree/master/gta

Do the Work: Create the visualization by hand
Create a climate change data visualization in the browser.

We're ready to build the HTML for the project. The HTML is straightforward: we just need a heading, some elements for the legend, and a table element for the data.

Resources

A guide to using the console in browsers: https://wickedlysmart.com/hfjsconsole

Elisabeth takes a deeper look at the data in gta_data.js: data is an array of arrays of objects. Get a refresher on arrays and objects in Head First JavaScript Programming first if you need to. We'll be iterating over these arrays later, so pay close attention to the structure of the data.

Follow along as Elisabeth makes sure the data is loading properly from the gta_data.js file in the main JavaScript file, gta.js.

She also shows how you can load the JSON data in gta.json using XHR (XmlHttpRequest), jQuery, and JavaScript if you'd like to try that method instead. Either way will work for the project. Just be aware; if you want to load the JSON data using XHR, you'll need to run a web server to serve your pages and the data files. Using gta_data.js is a good alternative if you don't want to worry about doing that.

Before we write the JavaScript code to create the visualization it's a good idea to understand the algorithm we'll be using. Elisabeth walks you through the algorithm so you have a high level understanding of each step before we write the code.

Do the Work: Try Writing some Code

Build the first part of the table with Elisabeth, including creating each table row heading, and assigning a unique id to each table cell so we can use it later when we add the data.

Here is where we add the data to the table from our data array: we're adding the ranking for each month with a data point, the color corresponding to that ranking, and the temperature anomaly value, to each table cell which represents a data point in the visualization.

Do the Work: Experiment with Color Tools

We're almost done with the JavaScript code for the data visualization. The last piece to add is the Javascript code for the color legend. Follow along with Elisabeth as she adds this final piece of code.

We're done with the JavaScript code. Now, Elisabeth will step you through how to finish the visualization using CSS to style the page. We'll complete the legend and improve the style of the table.

Get some insight into the project you just built

The benefit of visualizing data is that it can help provide insight into the data. In this video, Elisabeth walks through what we can learn from the visualization we've just made.

Resources

Additional graph created by NASA from WikiMedia Commons:

https://www.nasa.gov/topics/earth/features/temp-analysis-2009.html

https://commons.wikimedia.org/wiki/File:NASA_global_temperature_since_1880.gif

Save this course

Save How to Visualize Data with JavaScript to your list so you can find it easily later:
Save

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in How to Visualize Data with JavaScript with these activities:
Review HTML Fundamentals
Reinforce your understanding of HTML basics, including elements, attributes, and structure, to ensure a solid foundation for creating the data visualization's layout.
Browse courses on HTML
Show steps
  • Review HTML element syntax and best practices.
  • Practice creating basic HTML page structures.
Brush Up on CSS Styling
Strengthen your CSS skills, focusing on selectors, properties, and the box model, to effectively style the data visualization and create a visually appealing presentation.
Browse courses on CSS
Show steps
  • Review CSS selectors and property usage.
  • Practice styling HTML elements with CSS.
Practice JavaScript Fundamentals
Sharpen your JavaScript skills, including variables, functions, loops, and DOM manipulation, to effectively manipulate data and create interactive elements in the visualization.
Browse courses on JavaScript
Show steps
  • Review JavaScript syntax and data types.
  • Practice writing functions and using loops.
  • Experiment with DOM manipulation techniques.
Four other activities
Expand to see all activities and additional details
Show all seven activities
Head First JavaScript Programming
Use this book to reinforce JavaScript concepts, especially those related to DOM manipulation and event handling, which are crucial for building interactive data visualizations.
Show steps
  • Read the chapters on DOM manipulation and event handling.
  • Complete the exercises and projects in the book.
Follow jQuery Tutorials
Learn how to use jQuery to simplify DOM manipulation and event handling, making it easier to create interactive and dynamic data visualizations.
Show steps
  • Find tutorials on jQuery selectors and event handling.
  • Practice using jQuery to manipulate DOM elements.
Replicate a Simple Visualization
Practice building a basic data visualization from scratch using HTML, CSS, and JavaScript to solidify your understanding of the concepts covered in the course.
Show steps
  • Choose a simple dataset and visualization type.
  • Create the HTML structure for the visualization.
  • Style the visualization with CSS.
  • Use JavaScript to load and display the data.
Document Your Learning
Create a blog post or a series of notes summarizing the key concepts and techniques learned in the course to reinforce your understanding and share your knowledge with others.
Show steps
  • Review your notes and course materials.
  • Write a summary of the key concepts.
  • Share your notes or blog post online.

Career center

Learners who complete How to Visualize Data with JavaScript will develop knowledge and skills that may be useful to these careers:
Data Visualization Specialist
A Data Visualization Specialist transforms raw data into compelling visual representations. This role involves designing and developing interactive dashboards, reports, and presentations that communicate complex information effectively. The course, How to Visualize Data with JavaScript, provides a foundation in using JavaScript, HTML, and CSS to build interactive visualizations, directly aligning with the skills needed for this role. You'll learn how to read data into web pages and add it to HTML tables using JavaScript, which is essential for creating dynamic visualizations. This course may be useful for anyone seeking to present data insights in a clear and engaging manner.
Interactive Developer
An Interactive Developer creates engaging and immersive digital experiences using a combination of programming, design, and multimedia skills. This role often involves building interactive visualizations, games, and other innovative applications. How to Visualize Data with JavaScript focuses on building interactive visualizations using JavaScript, HTML, and CSS, providing you with the core skills needed to create dynamic and engaging user experiences. You'll also get the opportunity to learn how to incorporate data visualization into your projects. Interactive Developer is a field where this course can help you thrive.
Data Journalist
A Data Journalist uses data analysis and visualization to tell compelling stories and inform the public on important issues. This role requires a blend of analytical skills, journalistic storytelling, and data visualization expertise. How to Visualize Data with JavaScript focuses on building interactive visualizations using JavaScript, HTML, and CSS, which are essential tools for creating engaging and informative data-driven narratives. You'll learn practical techniques for presenting data in a clear and impactful way. If you are a data journalist, this course will help you on your journey.
Science Communicator
A Science Communicator translates complex scientific concepts into accessible and engaging formats for the public. Data visualization is a powerful tool for conveying scientific findings and promoting understanding of important issues. How to Visualize Data with JavaScript helps in simplifying scientific data to a broader audience, showcasing the importance of Javascript to the scientific endeavors. You will learn how to read data into a web page and add it to an HTML table using JavaScript code. This course can help you transform raw data into compelling visual stories.
User Interface Designer
A User Interface Designer focuses on the visual layout and interactivity of digital products, ensuring they are both aesthetically pleasing and user-friendly. The ability to incorporate dynamic data visualizations can significantly enhance the user experience. How to Visualize Data with JavaScript explores using JavaScript, HTML, and CSS to build interactive visualizations, directly aligning with the core concerns of user interface design. You'll learn how to present data in an engaging and accessible manner. For any UI designer, this course will assist you in adding a powerful tool to your skillset.
Front-End Developer
A Front End Developer builds the user interface and user experience of websites and web applications. This role requires expertise in HTML, CSS, and JavaScript to create responsive and visually appealing designs. With its focus on building interactive visualizations using JavaScript in conjunction with HTML and CSS, How to Visualize Data with JavaScript can certainly help you on a path to becoming a successful front end developer. You'll gain experience in manipulating the Document Object Model using jQuery, and visualize real world data. By taking this course, you'll enhance your ability to create dynamic and data-driven web applications.
Digital Marketing Specialist
A Digital Marketing Specialist manages and optimizes online marketing campaigns across various channels, including social media, email, and search engines. Data visualization is crucial for tracking campaign performance, identifying trends, and communicating results to stakeholders. How to Visualize Data with JavaScript enables digital marketing specialists to present campaign data in a clear and visually appealing manner. It focuses on building interactive visualizations using JavaScript, HTML, and CSS, which are fundamental skills for creating effective marketing dashboards and reports. This course can help you enhance your data presentation skills.
Marketing Analyst
A Marketing Analyst measures and analyzes the performance of marketing campaigns to optimize strategies and improve results. Data visualization is essential for communicating key metrics and insights to marketing teams and stakeholders. How to Visualize Data with JavaScript focuses on building interactive visualizations using JavaScript, HTML, and CSS, which directly support the need for clear and engaging data presentation in marketing analytics. This course empowers you to present campaign performance and identify areas for improvement.
Web Developer
A Web Developer designs, codes, and maintains websites and web applications. This encompasses both front-end and back-end development. How to Visualize Data with JavaScript may benefit you by focusing on utilizing JavaScript along with HTML and CSS to build interactive visualizations, which is a valuable skill for creating dynamic and engaging web content. You'll learn to read data into a web page and add it to an HTML table using JavaScript code. This course will help you improve your ability to incorporate data-driven elements into your web projects.
Business Intelligence Analyst
A Business Intelligence Analyst analyzes data to identify trends and insights that can improve business performance. Data visualization is a critical skill for communicating these insights to stakeholders. The course How to Visualize Data with JavaScript focuses on building interactive visualizations using JavaScript, HTML, and CSS. With this foundation, you will be better equipped to present data in a compelling and easily understandable format. This course directly addresses the need for effective data communication in business intelligence.
Instructional Designer
An Instructional Designer creates engaging and effective learning materials for online courses, training programs, and educational resources. Data visualization can enhance the learning experience by presenting complex information in a clear and memorable way. How to Visualize Data with JavaScript focuses on building interactive visualizations using JavaScript, HTML, and CSS, which are valuable tools for creating visually appealing and informative learning modules. You will also get the opportunity to learn best practices around data visualization. This course helps you create more engaging learning experiences.
Data Analyst
A Data Analyst examines and interprets data to identify trends, patterns, and insights that can inform business decisions. While this role typically involves statistical analysis and reporting, data visualization is an increasingly important aspect. How to Visualize Data with JavaScript may be useful to you to communicate the insights you uncover. The course teaches how to create interactive visualizations using JavaScript, HTML, and CSS, empowering you to present your findings in a clear and engaging manner. This course provides a practical introduction to data visualization techniques that can complement your analytical skillset.
Technical Writer
A Technical Writer creates documentation and guides for software, hardware, and other technical products. The ability to incorporate data visualizations can significantly improve the clarity and effectiveness of technical documentation. How to Visualize Data with JavaScript focuses on building interactive visualizations using JavaScript, HTML, and CSS, which are valuable skills for creating engaging and informative technical content. By being able to build interactive data visualizations for reports, a technical writer can provide more value to their organization.
UX Researcher
A UX Researcher investigates user behavior and needs to inform design decisions. While the role focuses on gathering and analyzing qualitative and quantitative data, the ability to present findings visually can be highly effective. How to Visualize Data with JavaScript focuses on using JavaScript, HTML, and CSS to build interactive visualizations. You may find that this course can help you communicate insights from your research in a compelling and easily understandable format, making your recommendations more impactful.
Data Engineer
A Data Engineer designs, builds, and manages the infrastructure and systems that collect, store, and process data. While this role primarily focuses on the back-end aspects of data management, understanding data visualization principles can be beneficial. How to Visualize Data with JavaScript may be useful for you to understand how data is ultimately presented and consumed. Learning to use JavaScript, HTML, and CSS to create visualizations can help you appreciate the importance of data quality and structure in the context of visual representation. This course may broaden your perspective on the data pipeline.

Reading list

We've selected one books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in How to Visualize Data with JavaScript.
Provides a comprehensive introduction to JavaScript programming, covering fundamental concepts and techniques. It is particularly useful for beginners or those looking to solidify their understanding of JavaScript. The book's engaging and visual style makes it an excellent resource for learning the language. It is commonly used as a textbook in introductory JavaScript courses.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Similar courses are unavailable at this time. Please try again later.
Our mission

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.

Affiliate disclosure

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.

© 2016 - 2025 OpenCourser