Skip to main content
100%

Task-8

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

This bar chart displays the population of ten countries for the year 2020, with countries on the vertical axis and population values on the horizontal axis. The visualization uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` handling the spatial mapping. Data is loaded asynchronously from a remote CSV using D3’s `csv` parser, with population values formatted using the `format` function to abbreviate large numbers (e.g., “1.5B”). The chart includes blue axis ticks and labels, green rectangular marks, and tooltips showing the formatted population on hover.

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