Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_Task1

Public visualization

Viewing a saved revision (read-only)

ddd822e3b5b74e70b5b034ed0db4ffae

activity6_Task1

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

This bar chart displays the population of 20 countries in 2010, with countries on the y-axis and population values on the x-axis. The visualization uses React to render SVG elements, with D3 v5 providing scales, margins, and tick formatting via `scaleBand`, `scaleLinear`, and `format`. Data is loaded as CSV from a GitHub repository and converted to numeric population values. Axes and marks are built as React components, with bars colored green and a hover tooltip showing the formatted 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.