Skip to main content
100%

Bar Chart on VizHub

✓ Published0🌍 Public
HHemanthh81
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example displays a grouped bar chart comparing miles per gallon (mpg) and attributes across car makes, using data fetched from a CSV hosted on GitHub Gist. The visualization is rendered as SVG via D3 v6, with scales and axes built through `d3.scaleBand`, `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft`. It also demonstrates importing modules from D3 and local ES6 modules, though the main chart logic in index.html and main.js handles the data parsing with `d3.csvParse` and asynchronous fetch.

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