Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 task 1

Public visualization

Activity 6 task 1

0 stars0🌍 Public
NNithish Karanam
Last edited Apr 3, 2025
Created on Apr 3, 2025
Forked from Hello VizHub

This example presents a horizontal bar chart showing the population of various countries, using data from a CSV file from a GitHub gist. The visualization is implemented in JavaScript with D3, where the x-axis uses a linear scale and the y-axis uses a band scale. The bars are drawn as SVG rectangles with a steelblue fill, and each bar is labeled with its population value. The chart includes left and bottom axes, created using `axisLeft` and `axisBottom`, and the code uses dynamic scaling and margin calculations to position the visualization.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed