Skip to main content
100%

activity 6_Task 1

✓ Published1🌍 Public
Hhemanthmaddila13@gmail.com
Last edited Apr 11, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This horizontal bar chart displays the populations of ten countries for the year 2020, ordered by country name. Using D3 v5 scales and React, the visualization maps population values to bar lengths on a linear scale while mapping country names to a band scale on the y-axis. The chart loads CSV data from a GitHub repository, converts the population column from thousands, and renders SVG rectangles with tooltips showing formatted values. The axes are styled with custom tick marks and labels, with the x-axis labeled "POPULATION-2020".

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes