Skip to main content
100%

Making a bar chart

✓ Published0🌍 Public
VVyom Raj
Last edited Jul 10, 2019
Created on Jul 10, 2019
Forked from Making a bar chart

This example shows a vertical bar chart of population data for ten countries, using a CSV file as its primary data source. The chart maps each country’s name to a categorical x-axis and its population value to a numeric y-axis, with bar heights encoded to reflect the top-largest populations, led by China and India. Built with D3 v5, the visualization relies on the `select` API to target the SVG element and reads explicit `width` and `height` attributes from the `<svg>` tag to size the canvas. The appearance is defined by an external stylesheet, and the rendering is entirely SVG-based, with no interaction or animation beyond the static bar geometry.

AI-generated description
MIT Licensed

Similar vizzes