Skip to main content
100%

Making a bar chart

✓ Published0🌍 Public
DDharmateja
Last edited Sep 21, 2019
Created on Sep 21, 2019
Forked from Hello VizHub

This example demonstrates how to build a basic bar chart from a dataset of country populations. It loads data from a CSV file using `d3.csv`, parses the population values, and maps each row to a rectangle element in an SVG canvas. The code uses D3’s `select` and `scaleLinear` (though scaling is not yet applied), and appends `rect` elements with fixed dimensions inside a 960×500 SVG. The visualization serves as a starting point for showing raw data as simple blocks before adding axes or proportional scaling.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes