Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar Chart

Public visualization

Viewing a saved revision (read-only)

1e0dd74439e34209bc6a316e77dbf95b

Fork of Bar Chart

0 stars1🌍 Public
Sshikharpa
Last edited Sep 23, 2023
Created on Jan 19, 2021
Forked from Bar Chart

This example displays a horizontal bar chart of the top 10 countries by population, using data from a CSV file. It shows the population values as bar lengths, with country names on the y-axis and a linear population scale on the x-axis. The visualization is implemented with D3 v6, using `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load the data, set up scales, render SVG rectangles, and draw axes. Rendering is performed via SVG elements appended to a pre-defined `<svg>` container.

AI-generated description

Demonstration on how to use D3.js smoothly while making a bar chart.