Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Bbudalavijay2001@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This bar chart displays the populations of the top 10 countries in the year 2000, sorted in descending order. The visualization uses a React component that loads CSV data via `d3.csv`, with `d3.scaleBand` mapping countries on the y-axis and `d3.scaleLinear` mapping population values on the x-axis. The custom `Marks` component renders green SVG rectangles, and axis labels are formatted using the `d3.format` function. Tooltips show the formatted population value for each bar.

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