Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar Chart using D3

Public visualization

Viewing a saved revision (read-only)

52eb1ddccf654d69b4ba05fe2df858ec

Fork of Bar Chart using D3

1 star1🌍 Public
Aalisha-zemoso
Last edited Jul 7, 2022
Created on Jul 7, 2022
Forked from Hello VizHub

This horizontal bar chart displays population figures for ten countries using a forked D3 example. The visualization maps country names to the y-axis with a band scale and population values to the x-axis with a linear scale. The code imports specific D3 modules like `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data from a CSV file and render SVG rectangles with steelblue fills. Axes are generated using D3’s axis components, with margins applied around the chart area.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.