Skip to main content
100%

activity 6

✓ Published0🌍 Public
AArungopal Andalam
Last edited Apr 15, 2024
Created on Apr 15, 2024

This bar chart displays the 2020 population estimates for 30 countries, ordered by country name on the vertical axis and population magnitude on the horizontal axis, with formatted tooltips showing values in billions. The visualization is built using React, which renders SVG elements directly, and D3 v5 for data loading and scaling, specifically `d3.csv` to parse the remote dataset, `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and `d3.format` for tick label abbreviation. Static axes and rectangular marks are generated through custom local ES6 modules, with styling applied via CSS classes.

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