Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Question 1

Public visualization

Viewing a saved revision (read-only)

5d5638902dee451dbea185337375802e

Activity 6 Question 1

0 stars0🌍 Public
Rrahulnathmukkolla@gmail.com
Last edited Apr 1, 2024
Created on Mar 31, 2024
Forked from Hello VizHub

This visualization is a horizontal bar chart showing the population of ten countries in the year 2000. The bar lengths are proportional to population values, with a tooltip revealing the exact number on hover. The chart uses a green fill for the bars and a light blue gridline color. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded from a CSV file via `d3.csv`, and the axes are drawn with custom React components. The chart is rendered as SVG, and tick labels use D3's `format('.2s')` to display values in billions.

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.