Skip to main content
Public

Share visualization

Loading preview…

Kumar-Reusable-Scatter

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Kumar-Reusable-Scatter

0
KKumar Danam
Last edited Oct 27, 2025
Created on Oct 27, 2025

This reusable scatter plot displays the relationship between horsepower and miles per gallon for ten car models, using orange-red circles positioned by linear scales. Built with d3.v7 and the reusable chart pattern, the module encapsulates configurable accessor functions, axis labels, dimensions, and color through chainable setters. The visualization loads car_performance.csv via d3.csv with d3.autoType, filters for valid numeric values, and renders an SVG with d3.axisBottom and d3.axisLeft, updating circles through the join pattern.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed