How gpushpanjaligoud-source/worldlens works
WorldLens is a browser-based country-comparison app for World Bank indicators. Users choose two countries, an indicator and a time range; the app fetches both series, falls back to sample data if retrieval fails, and presents the comparison as a chart, summary values and table. Users can export the displayed rows as CSV. The runtime is concentrated in app.js. The README is empty, and the available source does not show the HTML structure or how Chart is loaded.
Main entry points: app.js Comparison workflow
Components 9
Comparison interface
- Comparison controls
app.js - Comparison workflow
app.js
Indicator data
- World Bank API
- Sample fallback data
app.js - Country indicator series
app.js
Results and export
- Chart, summary and table
app.js - CSV export
app.js
Other components
- User
- Browser APIs
Connections 9
- User → Comparison controls: selects options
app.js - Comparison controls → Comparison workflow: triggers comparison
app.js - Comparison workflow → World Bank API: fetches series
app.js - Comparison workflow → Sample fallback data: falls back to
app.js - Comparison workflow → Country indicator series: sets series
app.js - Comparison workflow → Chart, summary and table: renders results
app.js - User → CSV export: requests export
app.js - CSV export → Browser APIs: creates download
app.js - Chart, summary and table → Browser APIs: draws chart
app.js