From 9b6de370a0b6cb95f46c29f5e1827f9c418ef6cf Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 17 Apr 2026 12:36:00 -0500 Subject: phase 1: scaffold D3/TopoJSON migration structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Extract country prison data to assets/data/countries.js (ES module) - Add ISO numeric→alpha-3 lookup table for TopoJSON ID bridging - Download world-atlas countries-110m.json (TopoJSON, 108KB) - Create stub ES modules for map, charts, and UI layers - Replace ZingChart/jQuery script tags with single ES module entry point - Preserve original app.js as _app.js.bak for Phase 2+ reference --- assets/js/charts/bar.js | 2 ++ assets/js/charts/pie.js | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 assets/js/charts/bar.js create mode 100644 assets/js/charts/pie.js (limited to 'assets/js/charts') diff --git a/assets/js/charts/bar.js b/assets/js/charts/bar.js new file mode 100644 index 0000000..4aa61ef --- /dev/null +++ b/assets/js/charts/bar.js @@ -0,0 +1,2 @@ +// Phase 4: horizontal bar chart for top-N countries +export function renderBarChart(container, data) {} diff --git a/assets/js/charts/pie.js b/assets/js/charts/pie.js new file mode 100644 index 0000000..ff5a2e5 --- /dev/null +++ b/assets/js/charts/pie.js @@ -0,0 +1,2 @@ +// Phase 4: donut pie chart for top-N countries +export function renderPieChart(container, data) {} -- cgit v1.2.3