Skip to main content
100%

Assignment 2 - Bar Chart

✓ Published1🌍 Public
Ppasyasahas
Last edited Jul 15, 2023
Created on Jul 6, 2023
Forked from Hello VizHub

This interactive bar chart displays car sales data for 20 car models in 2022, with population as the quantitative x-axis and car model names on the y-axis. The visualization loads CSV data from a GitHub gist and uses React with D3 v5 scaleBand and scaleLinear to position rectangles rendered as SVG marks. Axes are constructed through custom React components that leverage D3’s tick functions, with formatted tick labels using d3.format, and hover tooltips display values via SVG title elements.

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