Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Bar Chart

Public visualization

Viewing a saved revision (read-only)

94005eaa36bd4606a061cc2ead89452b

Fork of Fork of Bar Chart

0 stars0🌍 Public
Sshikharpa
Last edited Mar 24, 2021
Created on Mar 24, 2021
Forked from Fork of Bar Chart

This horizontal bar chart visualizes the top 10 countries by population, using a steelblue SVG canvas. The chart maps country names to the y-axis with a band scale and population to a linear x-axis. Rendered using D3 v6, the code loads data from a CSV file and applies `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the plot. Rectangles are appended to the SVG group, with their widths and positions derived from the scaled data values.

AI-generated description

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