Skip to main content
100%

LokeshMadem_Activity6_Question3.6

✓ Published0🌍 Public
LLokesh Madem
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity6_Task3.2

This scatter plot visualizes car data, mapping horsepower on the x-axis and highway miles per gallon on the y-axis, with points shaped according to the car make. It uses D3 v7's scale functions (`scaleLinear`, `scaleOrdinal`) and symbol generator to render custom shapes, alongside a custom legend. Data is fetched from a remote CSV file and parsed with `csvParse`. The chart employs `select` and `join` for declarative SVG updates, with axes and labels added via the `axes` module.

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