Skip to main content
100%

Fork of activity 6_ Q1.1

✓ Published1🌍 Public
Kkowshiksamudrala08@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from activity 6_Task 1

This example displays a horizontal bar chart of population data for ten countries in the year 2000. A React functional component renders SVG elements, using D3’s `scaleBand` and `scaleLinear` to position the bars and axes. The chart loads CSV data via `d3.csv` from a GitHub repository, formats the tick labels with `d3.format`, and includes tooltips on each bar using SVG `<title>` elements. Axis components are built as separate ES6 modules for bottom and left orientations.

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