Skip to main content
100%

Bar Chart

✓ Published2🌍 Public
Ssakhabutdinov
Last edited Oct 19, 2019
Created on Oct 18, 2019

This bar chart displays population figures for 13 countries, with countries listed along the y-axis and population values on the x-axis. The visualization uses d3.scaleBand to position each country’s bar and d3.scaleLinear to map population counts to bar widths. The code employs d3.svg.axis for the left and bottom axes, and renders everything as SVG elements within a 960×500 viewport. Data is loaded from a CSV file using d3.csv, with population values converted to numbers before rendering.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes