Skip to main content
100%

Laura

✓ Published0🌍 Public
LLauranJade
Last edited Nov 13, 2022
Created on Sep 19, 2022
Forked from barGraph

This example presents a population bar chart for countries around the world, using the 2022 Population data from the included CSV file. The visualization uses a qualitative scale on the x-axis for country names and a linear scale on the y-axis for population counts, rendering bars as SVG rectangles. Built with D3 v5, it uses `scaleBand` and `scaleLinear` for scales, and `axisLeft` and `axisBottom` for the chart's axes. The chart's tooltip, which displays country and population details on mouseover, is implemented with D3's `select` function and a styled HTML div.

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