Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Refactored_bar_chart

Public visualization

Viewing a saved revision (read-only)

4bda40f6942241f1bf64ab942180cf4d

Fork of Refactored_bar_chart

0 stars1🌍 Public
Ssagar limbu
Last edited Jun 1, 2022
Created on Jun 1, 2022
Forked from Hello VizHub

This bar chart displays the 2020 population estimates for ten countries, using horizontal bars ordered by country name. The visualization is built with React and D3 v7, where `d3.scaleBand` positions the categorical y-axis and `d3.scaleLinear` maps population values to bar widths. SVG rectangles are rendered through the custom `Marks` component, with axes generated by `AxisBottom` and `AxisLeft`. The data originates from a CSV file of UN Population 2019 data, loaded asynchronously and processed to extract the 2020 values.

AI-generated description

// Creating individual MODULES for each functions // calling functions