Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pink Face

Public visualization

Fork of Pink Face

0 stars0🌍 Public
AAsrar Al Qassem
Last edited Mar 15, 2024
Created on Mar 15, 2024
Forked from Pink Face

This example shows a bar chart of randomly selected cancer types and their death counts for the USA, titled “Cancer Deaths in the USA (Random Selection).” It loads a CSV dataset via `d3.csv`, filters it to USA records, and picks three random column names to build the dataset. The visualization uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and renders SVG rectangles as bars, with `d3.axisBottom` and `d3.axisLeft` for the axes.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

Comments

Sign in to join the discussion.

MIT Licensed