Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Question-1

Public visualization

Viewing a saved revision (read-only)

7cfc628e91ca4ee8adfc2524c4d85688

Activity 6_Question-1

0 stars0🌍 Public
Rrajkodavati7@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

A horizontal bar chart displays the population of ten countries in the year 2000, with bars extending from left to right. The visualization uses React to render SVG elements, with D3 v5's `scaleBand` and `scaleLinear` functions mapping country names and population values to the chart's axes. The `csv` function loads the dataset from a remote GitHub Gist, and the axis components are custom React components that call D3's tick generation methods. Population values are formatted using `format('.2s')` and converted from thousands to billions for the axis labels.

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.