Skip to main content
100%

Activity_6_test

✓ Published0🌍 Public
Aanushapodapati99@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity_6_test

This example displays a horizontal bar chart ranking the populations of ten countries in 2000, using a dataset loaded from a GitHub CSV file. The visualization renders as an SVG through React, with d3.scaleBand and d3.scaleLinear mapping country names to the y-axis and population values to the x-axis. The code utilizes d3.csv for data loading, d3.format for abbreviating tick labels, and custom React components for axes and rectangular marks. Interactive tooltips appear when hovering over bars, showing the population value in millions.

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