Assignment 2 - Bar Chart
✓ Published1🌍 Public
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 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