Skip to main content
100%

Task 9 Question 2

✓ Published0🌍 Public
Cchintamanenithp@gmail.com
Last edited Apr 29, 2024
Created on Apr 29, 2024
Forked from Hello VizHub

This example displays an area chart of highway MPG values grouped by vehicle make, using a steel-blue filled path to emphasize the distribution across categories. The visualization is rendered as an SVG via D3 v7, with data fetched from a remote CSV file and parsed using `d3.csvParse`. It employs `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the y-axis, and a `d3.area()` generator to create the shaded region. Axes are added using `d3.axisBottom` and `d3.axisLeft`, with rotated x-axis labels for readability.

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