A2 - Dot Plot
✓ Published0🌍 Public
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 descriptionA 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
mainfunction exported fromindex.js - The
mainfunction takes an argumentcontainer, a DIV
Full course playlist: YouTube: Constructing Visualization 2024.
MIT Licensed