Skip to main content
100%

Fork of Activity6_Question1_2

✓ Published0🌍 Public
CChandra Prakash Reddy Kalwakolu
Last edited Apr 11, 2024
Created on Apr 10, 2024

This bar chart displays the top 20 countries by population in 2010, using horizontal bars ordered by country name. The React app loads CSV data remotely, processes it with `d3.csv`, and renders SVG marks via `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The chart includes axis components with tick formatting using `d3.format` to abbreviate large numbers, while native SVG `<title>` elements provide tooltips. The visualization demonstrates reusable React components for axes and marks, with styling applied through 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