Skip to main content
100%

Lets make a face with D3.js

✓ Published1🌍 Public
FFilippaNathhorst
Last edited Oct 30, 2019
Created on Oct 30, 2019
Forked from Hello VizHub

A horizontal bar chart displays population data for ten countries, with bars sized by population value and labeled along the y-axis. The example uses D3 v5’s `csv` loader to parse the data, `scaleLinear` and `scaleBand` to map values to positions, and `axisLeft`/`axisBottom` for axes. Bars are rendered as SVG `rect` elements with a steelblue fill, while the x-axis formats large numbers using `d3.format` with a custom suffix replacement.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes