Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_Task 1

Public visualization

Viewing a saved revision (read-only)

7290b1125c1d418aaada4f0be670dcca

activity6_Task 1

0 stars0🌍 Public
SSreeKohaliPatel@my.unt.edu
Last edited Apr 15, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This bar chart displays the top 20 countries by their 2010 population. The code uses D3 version 5 within a React framework to render SVG elements, with a linear scale for population and a band scale for country names. The `axisBottom` and `axisLeft` components generate the axes, while the `marks` component creates the bars, each with a tooltip showing the formatted population value. Data is loaded from a CSV file via D3's `csv` function.

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.