Skip to main content
100%

Fork of Activity 6_Task 1_Q1.2

✓ Published0🌍 Public
KKondreddy Saikiran reddy
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from Activity 6_Task 1

A horizontal bar chart displays the 2010 populations of 20 countries, loaded as CSV data via `d3.csv` in a custom `useData` hook. React components render the SVG, with `scaleBand` and `scaleLinear` mapping countries and population values, while `AxisBottom` and `AxisLeft` create axes. The `Marks` component draws rectangle bars with tooltips, and populations are formatted using `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.
MIT Licensed

Similar vizzes