Skip to main content
100%

Activity6_Question1 Khushi

✓ Published0🌍 Public
KKhushi Desai
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Activity6_Task1

This example displays a horizontal bar chart comparing the populations of ten countries for the year 2000. The code uses React alongside D3 v5, leveraging `scaleBand` and `scaleLinear` for axes and `format` for tick labels. Data is loaded from a remote CSV file via `d3.csv`, with interactive tooltips provided by SVG `<title>` elements. The visualization renders bar marks within an SVG canvas, styled with a green fill and blue axis lines.

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