Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity-6_Task 1

Public visualization

Viewing a saved revision (read-only)

4806226c6a494bfe9f4d4527a0b7501b

activity-6_Task 1

0 stars0🌍 Public
1180030215cse@gmail.com
Last edited Oct 20, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This horizontal bar chart displays the population of ten countries for the year 2020, drawn as SVG rectangles using React. The chart uses D3 v5’s `scaleBand` and `scaleLinear` for axes and scales, with `format('.2s')` for tick labels. Data is loaded from a CSV file via D3’s `csv` function, then rendered with custom `AxisBottom`, `AxisLeft`, and `Marks` components.

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.