Interactive interface for browsing global, full-resolution satellite imagery
Remove mock data
christof-wittreiche693874c04c8
diff --git a/web/js/components/sidebar/charting-mode-options.js b/web/js/components/sidebar/charting-mode-options.jsindex a479eb643..182c6e950 100644--- a/web/js/components/sidebar/charting-mode-options.js+++ b/web/js/components/sidebar/charting-mode-options.js@@ -299,15 +299,14 @@ function ChartingModeOptions(props) {* @param {String} simpleStatsURI*/async function getImageStatData(simpleStatsURI) {- /* const requestOptions = {+ const requestOptions = {method: 'GET',redirect: 'follow',- }; */+ };try {- // const response = await fetch(simpleStatsURI, requestOptions);- // const data = await response.text();- const data = '{"mean": {"2026-01-09T00:00:00Z": 0.36017192908918777, "2026-01-10T00:00:00Z": 0.3885369696796461, "2026-01-11T00:00:00Z": 0.30759154163103475, "2026-01-12T00:00:00Z": 0.4103048251029627, "2026-01-13T00:00:00Z": 0.38004374327451756, "2026-01-14T00:00:00Z": 0.29884240160553016, "2026-01-15T00:00:00Z": 0.32887203830425576, "2026-01-16T00:00:00Z": 0.27330539783775376, "2026-01-17T00:00:00Z": 0.2832226909413854, "2026-01-18T00:00:00Z": 0.33304133257060864, "2026-01-19T00:00:00Z": 0.2828463203463203}, "median": {"2026-01-09T00:00:00Z": "0.3", "2026-01-10T00:00:00Z": "0.3", "2026-01-11T00:00:00Z": "0.25", "2026-01-12T00:00:00Z": "0.325", "2026-01-13T00:00:00Z": "0.3", "2026-01-14T00:00:00Z": "0.2", "2026-01-15T00:00:00Z": "0.25", "2026-01-16T00:00:00Z": "0.2", "2026-01-17T00:00:00Z": "0.175", "2026-01-18T00:00:00Z": "0.225", "2026-01-19T00:00:00Z": "0.125"}, "max": {"2026-01-09T00:00:00Z": 1.8, "2026-01-10T00:00:00Z": 2.025, "2026-01-11T00:00:00Z": 1.375, "2026-01-12T00:00:00Z": 2.15, "2026-01-13T00:00:00Z": 1.75, "2026-01-14T00:00:00Z": 1.425, "2026-01-15T00:00:00Z": 1.95, "2026-01-16T00:00:00Z": 1.325, "2026-01-17T00:00:00Z": 1.7, "2026-01-18T00:00:00Z": 1.95, "2026-01-19T00:00:00Z": 0.95}, "min": {"2026-01-09T00:00:00Z": 0.0, "2026-01-10T00:00:00Z": 0.0, "2026-01-11T00:00:00Z": 0.0, "2026-01-12T00:00:00Z": 0.0, "2026-01-13T00:00:00Z": 0.0, "2026-01-14T00:00:00Z": 0.0, "2026-01-15T00:00:00Z": 0.0, "2026-01-16T00:00:00Z": 0.0, "2026-01-17T00:00:00Z": 0.0, "2026-01-18T00:00:00Z": 0.0, "2026-01-19T00:00:00Z": 0.0}, "stdev": {"2026-01-09T00:00:00Z": 0.28477086162742365, "2026-01-10T00:00:00Z": 0.3366963736367211, "2026-01-11T00:00:00Z": 0.27500984108245463, "2026-01-12T00:00:00Z": 0.3469926924277428, "2026-01-13T00:00:00Z": 0.33114352682575054, "2026-01-14T00:00:00Z": 0.3009251064532651, "2026-01-15T00:00:00Z": 0.30514923656549786, "2026-01-16T00:00:00Z": 0.2480364241819868, "2026-01-17T00:00:00Z": 0.26816022698364583, "2026-01-18T00:00:00Z": 0.3366854026007206, "2026-01-19T00:00:00Z": 0.3184876399728323}, "stderr": "0.0002972413888497856", "hist": [["0.0", "477918"], ["0.215", "292653"], ["0.43", "152308"], ["0.645", "98977"], ["0.86", "41353"], ["1.075", "23861"], ["1.29", "9779"], ["1.505", "3220"], ["1.72", "1193"], ["1.935", "848"]]}';+ const response = await fetch(simpleStatsURI, requestOptions);+ const data = await response.text();// This is the response when the imageStat server failsif (!data || data === 'null') {return {