Scatter Plot with Menus
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed