DV Question_3
✓ Published0🌍 Public
This example visualizes car performance by plotting a scatter plot of horsepower against highway MPG, with points colored by car category such as Economy, Luxury, or Sports. The visualization uses D3.js v7 to render SVG circles, axes, and a legend, while the data comes from a static array of car models. The chart also groups car makes by category using a helper function to assign colors, demonstrating how D3 scales and selections create a clear comparison of vehicle performance across brand segments.
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