Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Fork of HTML Starter

0 stars0๐ŸŒ Public
SSYAM TEJ
Last edited Oct 17, 2025
Created on Oct 17, 2025
Forked from HTML Starter

This bar chart displays the average subject score for each favorite subject, with bars animating upward on load. Hovering over a bar turns it red and shows a tooltip with the exact value. Using D3 v7, the visualization fetches DSV data from a gist, parses it with `d3.dsvFormat`, aggregates values via `d3.rollup` and `d3.mean`, and renders an SVG with `scaleBand` and `scaleLinear` axes. Interactive transitions use `transition().duration()`, while mouse events update tooltip visibility and bar color.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed