Assignment 2 _ Bar Chart
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed