Skip to main content
100%

A2 - Dot Plot

✓ Published0🌍 Public
RRavneet Singh Bhatia
Last edited Feb 5, 2024
Created on Feb 5, 2024

This dot plot visualizes the top ten U.S. states by petroleum expenditure in transportation for 2019, with each blue dot positioned along a scaled x-axis that maps dollar amounts. The chart presents state rankings vertically, using labels and hover interactions that reveal exact values and draw a guide line to the axis. Built with p5.js, the sketch loads CSV energy data from a GitHub gist, processes it into a sorted dataset, and renders custom axes and dot annotations via the Canvas API.

AI-generated description

A blank slate starting point showing the "Hello World" for the VizHub V3 Runtime Environment, which supports continuous hot reloading with interactive widgets.

  • There is no index.html - that's what triggers the V3 Runtime
  • The entry point is the main function exported from index.js
  • The main function takes an argument container, a DIV

Full course playlist: YouTube: Constructing Visualization 2024.

MIT Licensed

Similar vizzes