Skip to main content
100%

Question3

✓ Published0🌍 Public
Aasimcyb@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity6_Task3

This example shows a scatter plot of car weight versus fuel efficiency (MPG), using a small CSV dataset with ten vehicles. Each point is colored by manufacturer, with a legend listing the distinct brands. The visualization is rendered as an SVG using D3 v6, employing `d3.csv`, `scaleLinear`, `axisLeft`, `axisBottom`, and `scaleOrdinal`. Axes are labeled for weight and MPG, with margins and a title, demonstrating basic data loading, scaling, and legend construction.

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