Skip to main content
100%

Bar Chart horizontal Population Final

✓ Published0🌍 Public
CChawin Sungwalngern
Last edited Dec 28, 2022
Created on Dec 27, 2022
Forked from Fork of Bar Chart

This horizontal bar chart displays the populations of the top 30 countries from 2020, with a unique inverted y-axis that places the most populous nations at the top. The visualization, rendered as an SVG, loads data from a CSV file and uses d3.scaleBand and d3.scaleLinear to position bars. Interactive hover effects are implemented via D3 event listeners, which change bar color from black to orange on mouseover and smoothly transition back on mouseout, creating an animated user experience.

AI-generated description

This bar chart shows population of the top 30 countries. The data comes from the year 2020 Kaggle: World Population Prospects 2020.

The Data is twisked by excel and import to JS file as CSV file. a bar chart of 30 countries was created based on population data and animated when hover with D3 and CSS

MIT Licensed

Similar vizzes