Skip to main content
100%

Activity6_task-1 question1

✓ Published0🌍 Public
Iiftequaruddin883@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example uses a horizontal bar chart to compare the year-2000 population of ten countries, with the bars ordered by country name. The chart is rendered as an SVG using React, and the code imports D3 functions like `scaleBand`, `scaleLinear`, `max`, and `format` from the `d3` package. It loads CSV data from a remote GitHub URL through a custom `useData` hook. The simple bar marks use D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with a title tooltip generated via D3's `format` function.

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.
MIT Licensed

Similar vizzes