Skip to main content
100%

Fork of Fork of Activity 6_Task 1

✓ Published0🌍 Public
Hhemanthdummy999@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024

This example displays a horizontal bar chart of the top 20 countries by 2010 population, using a CSV file loaded via `d3.csv`. It shows a population bar chart with a formatted x-axis that converts values to billions (e.g., "B") using `d3.format`. The visualization is built with React components (e.g., `AxisBottom`, `AxisLeft`, `Marks`) and renders SVGs using `d3.scaleBand` and `d3.scaleLinear`. The bars are styled with a light green fill (`#90ee90`), and hover tooltips are provided by SVG `<title>` elements.

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