Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1

Public visualization

Viewing a saved revision (read-only)

e6acda5e2fe54d8d850dda134841ccad

Activity6_Task1

0 stars0🌍 Public
Vvankayalapatimounika2000@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This visualization shows a horizontal bar chart of population data for ten countries from the year 2000, with each bar representing a country's population. The chart uses D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the numerical x-axis. The data is loaded from a CSV file using D3's `csv` parser, and the visualization is rendered as SVG. The code uses React for the component structure, and D3's `format` function with a `.2s` specifier to display population values in billions. Hovering over a bar reveals a tooltip with the exact population 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.