Skip to main content
100%

Tutorial1

✓ Published0🌍 Public
Eeedaraajay02@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This bar chart displays the 2020 populations of 30 countries, with a horizontal layout and a square-root scale for the x-axis. The visualization utilizes React, D3 v5, and ES6 modules, loading data from a CSV in useData.js using d3.csv. SVG rendering is driven by custom components for axes and marks, which use d3.scaleBand and d3.scaleLinear to map values. A tooltip, set via the `title` element, shows the formatted population on hover.

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