🌍 Public
Viewing a saved revision (read-only)
0987ebd5e7ad4ac38eeb773a2a27ef5e
Lets make a face with D3.js
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 descriptionAn example showing the capabilities of VizHub.