Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Kumar Danam - LINE CHART

Public visualization

Kumar Danam - LINE CHART

0 stars1🌍 Public
KKumar Danam
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from LINE CHART

A line chart displays average car horsepower per year, with an overlaid scatterplot of individual data points, each circle colored by car model. The average trend is shown as a blue line, while hovering over any point reveals a tooltip with the model, year, and horsepower. The visualization aggregates the CSV data using `d3.rollup` and computes the mean horsepower, then renders the SVG with `d3.line` for the average line and `d3.scaleOrdinal` for color mapping. Interactive tooltips are enabled through `d3.select` and mouse event handlers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed