Skip to main content
100%

activity 6_Q1_1

✓ Published1🌍 Public
TTarshit Vupperla
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from activity 6_Task 1

This example displays a horizontal bar chart ranking the ten most populous countries by their year 2000 population, with labeled axes and a green fill for data marks. Built with React and D3.v5, it imports `scaleBand` and `scaleLinear` to map countries and population values to SVG coordinates, while `AxisBottom` and `AxisLeft` render ticks and labels. The `Marks` component creates rectangles with hover tooltips, and data is loaded asynchronously from a remote CSV using D3’s `csv` 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