Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Interactive Graph

Public visualization

Viewing a saved revision (read-only)

6a23cf6f4e284e62aab89d9c05b31eea

Interactive Graph

0 stars0🌍 Public
CChuyang Xiao
Last edited Dec 13, 2021
Created on Dec 13, 2021
Forked from HTML Starter

This interactive graph visualizes changes in U.S. import and export values across six commodity categories over multiple time periods. Users can switch between different data snapshots and toggle between imports and exports, with animated bar transitions updating the display. The visualization uses D3.js (v7) with SVG rendering, leveraging scales, axes, and transition methods to create smooth updates. The bar chart encodes values on a linear scale, and the code includes predefined datasets for each period.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.