Making a bar chart
✓ Published0🌍 Public
A horizontal bar chart ranks Slovak municipalities by their 2019 population, using data from a local CSV file. The chart displays each city district’s name on the y-axis and the population value on the x-axis. Built with d3.v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering rectangular bars with an SVG `rect` element. Axes are generated via `axisLeft` and `axisBottom`, and the bars are styled with a steelblue fill via CSS.
AI-generated descriptionMIT Licensed