Skip to main content
100%

Task8_1

✓ Published1🌍 Public
LLakshmi Keerthi
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This horizontal bar chart displays the population of countries for the year 2020, using data loaded from a CSV file via D3's `csv` function. The visualization uses React to render SVG elements, with D3's `scaleBand` for the y-axis and `scaleLinear` for the x-axis. Each bar is a `<rect>` with a `<title>` element for tooltips, and the axes are custom components that generate tick marks and labels. The chart specifically formats population values in billions with the `siFormat` function, and the left axis lists country names.

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