Skip to main content
100%

Fork of Fork of Activity_6_Task_1_Question_1_2

✓ Published0🌍 Public
LLarry Johnson
Last edited Oct 24, 2024
Created on Oct 24, 2024

This horizontal bar chart displays the populations of twenty countries in 2010, sorted by country name. Rendered as an SVG using React, the visualization loads data from a GitHub-hosted CSV file via the D3 `csv` function. The chart uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis, with axes and rectangular marks built from custom React components. Population values are formatted with D3’s `format` function to abbreviate large numbers, and tooltips on each bar show the precise formatted value.

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