🌍 Public
Viewing a saved revision (read-only)
170de07b903f4bc480fbde358f719cdb
Task8_Question3
This scatter plot visualizes the relationship between vehicle weight and miles per gallon, with points shaped according to the number of cylinders. The visualization is built with D3 v7, using `scaleLinear` for both axes and `scaleOrdinal` with `symbolsFill` to map cylinder counts to distinct shapes. Axis labels and tick marks are generated through custom `axes` and `shapeLegend` modules, which leverage D3's `axisLeft`, `axisBottom`, and `symbol` APIs. Data is loaded asynchronously from a CSV file via `csvParse` and rendered as SVG paths.
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.