Skip to main content
100%

Fork of Fork of Bar Chart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes