Skip to main content
100%

Scatter Plot with Menus

✓ Published0🌍 Public
PPenguin-jpg
Last edited Sep 18, 2023
Created on Sep 18, 2023
Forked from Cars Scatter Plot

This interactive scatter plot displays relationships between numeric attributes of the auto-mpg dataset, letting users select any column for either axis via dropdown menus. The visualization updates both axes and labels dynamically with each selection, using circles with opacity to show data density. Built with D3 v7, the code demonstrates modular ES6 imports, reusable chart functions, and shared dropdown menu logic. Data loads from a CSV file, with numerical parsing performed before rendering as an SVG using scales, axes, and gridlines.

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