Activity6_TASK3(Question)
✓ Published0🌍 Public
This scatter plot visualizes the Bubblechart dataset, mapping horsepower on the x-axis, highway MPG on the y-axis, and coloring each point by car make using a custom ordinal color scale. It loads CSV data via `d3.csv`, applies linear scales with `scaleLinear`, and renders SVG circles with axes from `d3.axisLeft` and `d3.axisBottom`. A legend built with SVG rectangles and text labels identifies the makes, using data bound through D3’s `join` method and dynamic element creation.
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