Activity6_q3
✓ Published0🌍 Public
This scatter plot visualizes the relationship between horsepower and highway MPG for various car makes, with each point colored by car category (Economy, Standard, Luxury, or Sports). The visualization uses D3 v7 to render SVGs, employing d3.scaleLinear for both axes and d3.scaleOrdinal for categorical coloring. A legend identifies the color-coded categories, while axis labels and a title provide context. The data is embedded in the HTML file, and all rendering is done client-side using standard D3 selection and data-join methods.
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