Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels (Bar Chart)

✓ Published3🌍 Public
GGogineni44
Last edited Mar 19, 2023
Created on Mar 19, 2023

This bar chart visualizes the 2022 population data for a subset of countries, displaying only the first three rows from a CSV dataset. The visualization uses D3 v5 scales, including `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, rendering SVG rectangles as the primary marks. Built with React hooks (`useState` and `useEffect`), the code loads data via `d3.csv` and generates axes using `axisLeft` and `axisBottom`-style components. The chart includes gridlines and tick labels, with the population values encoded as bar widths.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes