Bar Chart top 30 Countries Population (vertical) with CSV Final
This bar chart displays the population of the top 30 countries in 2020, using a vertical layout. The data is sourced from the Kaggle World Population Prospects 2020 dataset, which was processed externally before being imported as a CSV. The visualization is rendered in SVG using D3 v5, with bars that change color from black to orange upon mouse hover, and smoothly transition back. It utilizes D3's `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `format` functions to construct the chart, with a custom tick formatter.
AI-generated descriptionThis 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