MIAGE base
✓ Published0🌍 Public
This example displays a bar chart of country populations for 2022, sourced from a CSV file. It uses D3 v5 to render the chart as an SVG, with a band scale for the x-axis and a linear scale for the y-axis. Mouseover interactions reveal a tooltip showing the country name and population. The code also imports a local ES6 module for a message, demonstrating VizHub’s capability to load D3 from UNPKG and use local modules.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed