Skip to main content
100%

Making a Bar Chart - JAY

✓ Published1🌍 Public
Jjay
Last edited Feb 7, 2020
Created on Feb 7, 2020

This example displays the frequency of credit score categories—Medium-High, Medium-Low, High, Low, and NA—as a horizontal bar chart. It loads data from a CSV file using d3.csv, then scales it by 1000. The visualization uses d3.scaleBand for the categorical y-axis and d3.scaleLinear for the x-axis frequency values. Bars are rendered as SVG rect elements, with axes added via d3.axisLeft and d3.axisBottom. The chart includes a title but no explicit data source attribution.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes