Skip to main content
100%

Q3 - Jaynica Nunna

✓ Published0🌍 Public
Nnunnajaynica@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This scatter plot visualizes a car dataset, showing the relationship between horsepower on the x-axis and highway MPG on the y-axis, with each circle colored by car make. The visualization demonstrates D3 v6’s modular API, using `csv` to load data from a GitHub raw URL, `scaleLinear` and `scaleOrdinal` with `schemeTableau10` for scales, and `axisLeft`/`axisBottom` for axes. Circles are rendered as SVG elements via `selectAll().data().join()`, with a color legend positioned on the right. The plot uses a full-window SVG canvas with margins adjusted for readability.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes