🌍 Public
Viewing a saved revision (read-only)
15f9aa19a77e4d149a27839179884c38
act 6 q3
This interactive scatter plot visualizes a car dataset, plotting horsepower against highway MPG, with each dot colored by the car's make through a Tableau 10 ordinal scale. The chart uses d3.csv to load remote data, d3.scaleLinear for both axes, and d3.axisLeft and d3.axisBottom for tick marks. A legend is rendered as colored rectangles with text labels, and the plot spans the full browser window via window.innerWidth and window.innerHeight. The visualization is built with d3.v6, rendered as SVG, and includes axis labels for both dimensions.
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.