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)

1aa6e8f289f744fe8cb2557564f862d6

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