Interactive interface for browsing global, full-resolution satellite imagery
Fix charting errors
ZachTRice4e7ca3612949
diff --git a/web/js/components/sidebar/charting-mode-options.js b/web/js/components/sidebar/charting-mode-options.jsindex a5d3c1a72..241f28158 100644--- a/web/js/components/sidebar/charting-mode-options.js+++ b/web/js/components/sidebar/charting-mode-options.js@@ -282,7 +282,7 @@ function ChartingModeOptions(props) {areaOfInterestCoords,bins,} = uriParameters;- let requestURL = `https://worldview.earthdata.nasa.gov/service/imagestat/get_stats?_type=${type}×tamp=${timestamp}&steps=${steps}&layer=${layer}&colormap=${colormap}&bbox=${areaOfInterestCoords}&bins=${bins}`;+ let requestURL = `https://worldview.uat.earthdata.nasa.gov/service/imagestat/get_stats?_type=${type}×tamp=${timestamp}&steps=${steps}&layer=${layer}&colormap=${colormap}&bbox=${areaOfInterestCoords}&bins=${bins}`;if (type !== 'date') {requestURL += `&end_timestamp=${endTimestamp}`;}@@ -302,7 +302,6 @@ function ChartingModeOptions(props) {try {const response = await fetch(simpleStatsURI, requestOptions);const data = await response.text();-// This is the response when the imageStat server failsif (!data || data === 'null') {return {@@ -352,7 +351,7 @@ function ChartingModeOptions(props) {const xAxisNames = getKeysFromObj(data.min);// Add error days to dataif (data.errors?.error_count > 0) {- xAxisNames.push(...data.errors.error_days.replace(/[[\]']/g, '').split(', '));+ xAxisNames.push(...data.errors.error_days);xAxisNames.sort();}const rechartsData = [];