Skip to main content
100%

Activity 6_Task 1

✓ Published1🌍 Public
Sshivakumarganji@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of 2020 population data for thirty countries, sourced from a CSV file hosted on GitHub. The visualization is rendered using React and SVG, with D3 v5 utilities managing the layout. Specifically, code imports `scaleBand`, `scaleLinear`, `max`, and `format` from D3 to position bars and axes. The chart uses a linear x-scale for population values and a band scale for countries, with tick labels and axis text custom-styled. React's `useData` hook asynchronously fetches and processes the data before rendering.

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