Skip to main content
100%

DV ASSIGNMENT-2.2

✓ Published0🌍 Public
Ggoudasrija@gmail.com
Last edited Jul 12, 2024
Created on Jul 12, 2024
Forked from Hello VizHub

This example visualizes highway fuel efficiency across vehicle makes using a D3 area chart rendered as SVG. The chart maps car makes along the x-axis and their highway miles-per-gallon values along the y-axis, with a semi-transparent steel-blue area filling the region beneath the line. It fetches a remote CSV dataset, parses it with `d3.csvParse`, and uses `d3.scaleBand`, `d3.scaleLinear`, and `d3.area` to construct the visualization. Custom axis styling rotates the x-axis labels for readability, and the code demonstrates loading D3 v7 via CDN and ES6 module imports.

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