Skip to main content
100%

Making a Bar chart

✓ Published0🌍 Public
RRonaldKaweesi
Last edited Oct 6, 2019
Created on Oct 6, 2019

This bar chart displays population figures for ten countries, using horizontal rectangles positioned along an SVG canvas. The example demonstrates a basic D3 data-join workflow: it loads a CSV file with `d3.csv`, converts the population strings to numbers, and scales the data with `d3.scaleLinear`. However, the current implementation only appends empty rectangles with fixed dimensions; it does not yet bind the scaled data to the bar heights or widths, leaving the visualization incomplete.

AI-generated description
MIT Licensed

Similar vizzes