Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Wwsupko
Last edited Apr 16, 2019
Created on Apr 16, 2019
Forked from Making a bar chart

A horizontal bar chart displays the populations of ten countries, with bars ranked from China down to Mexico. The visualization focuses on axis customization: a band scale positions country labels on the y-axis, while a linear scale maps population values to bar lengths on the x-axis. Rendered as SVG using d3.scaleLinear, d3.scaleBand, axisLeft, and axisBottom, the chart loads population data from a CSV file and multiplies each value by 1000 to reflect actual population counts.

AI-generated description
MIT Licensed

Similar vizzes