Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Bar Chart

Public visualization

Customizing Bar Chart

0 stars0🌍 Public
CChampCham
Last edited Aug 16, 2019
Created on Aug 16, 2019
Forked from Customizing Axes

This example displays a horizontal bar chart of population figures for the ten most populous countries, using raw population values scaled by 1,000. The chart’s bars are drawn as SVG rectangles, with their widths proportional to each country’s population via a `d3.scaleLinear` scale. The code uses `d3.select`, `d3.csv`, and `d3.max` to load and process the data from a CSV file, while a `d3.scaleBand` is defined for the y-axis but remains unused in the rendered output. The visualization highlights a straightforward, unpolished styling approach without axes or labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed