Fork of question_3
✓ Published0🌍 Public
This example shows a scatter plot of car data, mapping horsepower on the x-axis and highway MPG on the y-axis. Each circle is colored by the car’s make, with a legend listing the makes. The visualization loads CSV data via `d3.csv` from a GitHub repository, scales axes with `d3.scaleLinear`, and assigns colors using `d3.scaleOrdinal` with `schemeTableau10`. Axes are rendered using `d3.axisLeft` and `d3.axisBottom`, and the SVG is created with D3 v6 selections.
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