From 3cf31bc3c14f95298575406d06735b022ba3dd70 Mon Sep 17 00:00:00 2001
From: Alex-NRCan <94073946+Alex-NRCan@users.noreply.github.com>
Date: Tue, 31 Oct 2023 21:54:36 +0000
Subject: [PATCH] Build: (f91dbc6) GeoChart naming and types simplification
(#39)
Commit to keep track
Fixing some types
Added a title and fixed some sliders value check
Added comments and bug fix
Remove comments causing issues after react minification in production(!)
---
index.html | 442 +-
main.js | 40203 ++++++++++++++++++++++++++++++++++++---------------
2 files changed, 29210 insertions(+), 11435 deletions(-)
diff --git a/index.html b/index.html
index 08689b1..43c6936 100644
--- a/index.html
+++ b/index.html
@@ -1,4 +1,297 @@
-
Charts
GEOCHART INPUTS (these parameters will be parsed and sent to the Chart.js props on the right and GeoChart created below)
CHART.JS PROPS (these Chart.js native parameters are used to draw the actual chart itself)
GEOCHART INPUTS
\ No newline at end of file
+ // This is hacky, but it's only to load default values off the start. It is also because we don't have a cgpv.init callback.
+ setTimeout(() => {
+ buildChartInputs();
+ }, 1000);
+
+ // Listen on the chart parsed to update the UI
+ window.addEventListener('chart/parsed', handleChartLoaded);