Skip to main content
100%

DV Question_3

✓ Published0🌍 Public
GGOPI MUPPURI
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes