Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

DV TASK-8(Q1)

Public visualization

Viewing a saved revision (read-only)

58babfdf4ff24d5885a9c6cbf31237e6

DV TASK-8(Q1)

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

This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000. The visualization uses React to render SVG elements, with D3 v5 scales (`scaleBand` and `scaleLinear`) mapping country names and population values to positions and bar lengths. The data is loaded as CSV from a GitHub repository, with population values converted from thousands. Tooltips display formatted population values, and axes are labeled with a tick format that abbreviates large numbers using the `format` API.

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.