Skip to main content
Public

Share visualization

Loading preview…

Activity6_Question 3

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

Activity6_Question 3

0
Hharinihari6791@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Hello VizHub

This scatter plot visualizes the relationship between horsepower and miles per gallon for cars, with points colored by the car's origin (USA, Japan, or Europe) and a categorical color legend. The visualization is built using D3 v6, employing a custom scatter plot module with `scaleLinear` functions for both axes and an ordinal color scale from `d3.schemeCategory10`. The chart dimensions are fixed at 1000 by 600 pixels, rendering as SVG, with data loaded from a CSV file containing 80 car records. A color legend component displays the origin categories with corresponding colored circles.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed