Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Assignment5

Public visualization

Viewing a saved revision (read-only)

9cd8494d9d6d4edeb41f32c3fb798029

Assignment5

0 stars1๐ŸŒ Public
HHaiyan Sun
Last edited Sep 29, 2026
Created on Sep 29, 2026
Forked from HTML Starter

This dashboard visualizes the relationship between market capitalization and revenue for 30 U.S. companies, with each dot representing a single firm. The interface allows switching between five chart versions that explore different encoding channels, from position-only to color and area variations. Built with D3 v7, the visualization uses `d3.csv` to load data from a GitHub gist, `d3.extent` for summary statistics, and SVG rendering for the scatter plot. The code also includes interactive navigation buttons that update the chart's visual encodings.

AI-generated description

U.S. Stocks Visualization

A D3.js-based interactive scatter plot visualization of market capitalization versus revenue for 30 U.S. companies.

Project Overview

This project creates a data visualization showing the relationship between market cap and revenue for major U.S. companies across different sectors. Built with D3.js v7 for CSCE 5320 Homework 5.

Files

  • starter.html - Main HTML file with embedded D3.js visualization
  • styles.css - Stylesheet for the page layout and chart styling
  • package.json - Node.js project configuration
  • .nvmrc - Node version specification

Getting Started

Prerequisites

  • Node.js 18.17.0 or higher
  • A modern web browser

Installation

ISC Licensed