Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task8_Q1

Public visualization

Viewing a saved revision (read-only)

92f7b9b0f18c43edb7b532f065afd2a2

Task8_Q1

0 stars1🌍 Public
LLakshmi Keerthi
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Task8_1

This example displays a horizontal bar chart of the population of ten countries for the year 2000, with bars sorted by country name and a blue axis line. The visualization uses React and D3 v5 to render SVG marks; `d3.scaleBand` and `d3.scaleLinear` map the categorical and quantitative variables, while axes are built from custom modules. Population data is loaded as CSV from a remote repository, with values scaled by a thousand. The chart includes interactivity via native SVG `<title>` tooltips that format tick values with `d3.format`.

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.