Bar Chart
✓ Published1🌍 Public
A horizontal bar chart displays population estimates for ten countries, with bars ordered from China at the top to Mexico at the bottom. Population values are read from a CSV file and scaled linearly, while country names are mapped to a band scale. The chart is rendered as SVG using D3 v5, with axes generated by `axisLeft` and `axisBottom`. The bars themselves are appended as `rect` elements with a steelblue fill, and the visualization includes margins and a padding between bars.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed