summaryrefslogtreecommitdiff
path: root/assets/js/app.js
blob: 51ff0b401816fae3f5f7c755682e1d61581b28eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import * as d3 from "https://cdn.jsdelivr.net/npm/d3@7/+esm";
import * as topojson from "https://cdn.jsdelivr.net/npm/topojson-client@3/+esm";
import { countries } from "../data/countries.js";
import { isoNumericToAlpha3 } from "../data/iso-numeric-to-alpha3.js";
import { initMap, applyGradient, setClickHandler } from "./map/choropleth.js";
import { initTooltip } from "./map/tooltip.js";
import { initZoom, resetZoom } from "./map/zoom.js";
import { renderBarChart } from "./charts/bar.js";
import { renderPieChart } from "./charts/pie.js";
import { showCountryModal } from "./ui/modal.js";
import { initCompare } from "./ui/compare.js";
import { initControls, getTop5 } from "./ui/controls.js";

// Phase 2+: wire modules together here