Skip to main content
100%

Bar data visulization

✓ Published0🌍 Public
Ffaqihisaninja
Last edited Feb 9, 2021
Created on Feb 9, 2021
Forked from data visulization

This example shows a horizontal bar chart comparing population figures across six countries, with each bar’s length proportional to its population value. The visualization uses React with D3 v6, rendering SVG elements via d3.select, d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom. The code loads data from a CSV file, multiplies population values by 1,000, then maps countries to the y-axis and scaled populations to the x-axis, with steelblue rectangles and axis labels.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes