Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

new vitesh

Public visualization

Viewing a saved revision (read-only)

9144b2bc470149518948991788e0b13d

new vitesh

0 stars2🌍 Public
Vvikramkotlo9@gmail.com
Last edited Apr 9, 2024
Created on Apr 8, 2024
Forked from Hello VizHub

Two side-by-side bar charts compare the ten countries with the highest Global Innovation Index (GII) scores. The left chart displays each country’s 2023 population, while the right chart shows its GII value, using the same country order for direct visual comparison. Built with D3 v6, the example fetches and merges two CSV datasets, then renders SVG bar charts with rotated x-axis labels. The code uses `d3.csv` for data loading, `d3.scaleBand` and `d3.scaleLinear` for scales, and `d3.axisBottom` plus `d3.axisLeft` for axes.

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.