Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

SVG

Public visualization

SVG

0 stars0🌍 Public
Hhambasicharis1995
Last edited Aug 16, 2019
Created on Aug 13, 2019
Forked from Hello VizHub

This example demonstrates a horizontal bar chart comparing the populations of five countries, using SVG elements for rendering. The chart loads data from a CSV file and applies D3.js v5 scales, including `scaleLinear` for the x-axis and `scaleBand` for the y-axis. Axis components are created with `axisLeft` and `axisBottom`, while number formatting uses `format` to abbreviate large population values. The bars themselves are drawn as `rect` elements with a fixed steelblue fill, and the visualization includes custom margins and a title.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed