Skip to main content
100%

task-1

✓ Published0🌍 Public
Aajaykumarakula00@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

A horizontal bar chart ranks the population in 2020 for 30 countries, with bars extending from a common left baseline. The visualization is built with React and D3 v5, using `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis. `AxisBottom` and `AxisLeft` render tick marks and labels, while `Marks` draws SVG rectangles with tooltips. Data loads from a CSV via D3's `csv` function, with populations multiplied by 1000. The chart uses the Poppins font and custom CSS for styling.

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