Skip to main content
100%

Task 1b

✓ Published0🌍 Public
Hhaneesh@gctc.in
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of the 2010 populations of 20 countries. The chart uses SVG for rendering, with a React front-end. It loads data from a CSV file hosted on GitHub and uses D3 v5 for scaling, formatting, and calculating the layout. The visualization highlights D3's `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `format` for tick labels. A tooltip appears when hovering over each bar, displaying the population value. The chart is styled with CSS rules for tick marks and bar colors.

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