Skip to main content
100%

Activity_6_Task_1_q2

✓ Published1🌍 Public
Ssuhaibuddinahmed10@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Activity_6_Task_1

This interactive bar chart displays the population of 20 countries in 2010, sourced from a CSV dataset loaded via `d3.csv`. Rendered as an SVG using React, the chart maps countries to the y-axis and population values to the x-axis using `d3.scaleBand` and `d3.scaleLinear`. The D3 library formats axis tick labels (e.g., converting billions) and provides tooltips on hover. Custom components like `AxisBottom` and `Marks` structure the visualization, while CSS styles the bars and gridlines.

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