Skip to main content
100%

Activity6_Question1.2

✓ Published0🌍 Public
Aalapati98@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This horizontal bar chart displays the population of 20 countries as of 2010, sorted by country name. The visualization uses React with D3 v5 to render SVG elements, employing `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and custom axis components. Data is loaded asynchronously from a remote CSV file using D3’s `csv` function, with tooltips formatted using `format('.2s')` to display values in billions. The chart is styled with Poppins font and orange bars, demonstrating local ES6 module imports and D3’s UNPKG distribution.

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