Viewing a saved revision (read-only)
1e56becefd32498ca673fc1a9e28dc24
sample
This example presents a multi-panel dashboard of health and development indicators using D3.js v7. It displays a simple circle, several scatter plots comparing health expenditure metrics (such as public health spending as a percentage of GDP), a line chart of per-capita health expenditure, a scatter plot relating the Gender Inequality Index to the Human Development Index, and a bar chart of GDP per capita. The visualizations are rendered as SVGs with animations and interactive tooltips. The code uses d3.csv to load remote datasets, d3.scaleLinear, d3.scaleBand, d3.axisBottom, d3.axisLeft, d3.scaleOrdinal with d3.schemeCategory10, and a d3.zoom for panning and zooming in one chart.
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.