Skip to main content
100%

Assignment 2 _ Bar Chart

✓ Published0🌍 Public
Cchsaisriharsha@gmail.com
Last edited Jul 23, 2023
Created on Jul 22, 2023

A horizontal bar chart displays car sales data for 20 car models in 2022, with each bar's length proportional to the population value. The visualization uses React to render SVG elements, with D3 v5 APIs such as `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `format` to abbreviate tick labels. The bar marks are rendered as SVG rectangles with tooltips, and data is loaded from a remote CSV via D3's `csv` function, with the 2022 column filtered and sliced.

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