diff --git a/src/blocks/HistoryLineChart.svelte b/src/blocks/HistoryLineChart.svelte index 2a2847e2..2b1e05d0 100644 --- a/src/blocks/HistoryLineChart.svelte +++ b/src/blocks/HistoryLineChart.svelte @@ -418,7 +418,7 @@ Raw Data {/if}
- +
{#if showAgeStratifications} diff --git a/src/blocks/RegionCountyMap.svelte b/src/blocks/RegionCountyMap.svelte index 84f84387..43d33816 100644 --- a/src/blocks/RegionCountyMap.svelte +++ b/src/blocks/RegionCountyMap.svelte @@ -61,6 +61,8 @@ Hex fill color: value at selected date - + diff --git a/src/blocks/RegionMap.svelte b/src/blocks/RegionMap.svelte index 52f1b9c2..3a6a1212 100644 --- a/src/blocks/RegionMap.svelte +++ b/src/blocks/RegionMap.svelte @@ -118,7 +118,7 @@ on:click={onClickHandler} eventListeners={['click']} /> - + diff --git a/src/components/DownloadMenu.svelte b/src/components/DownloadMenu.svelte index a889111c..4597cbbd 100644 --- a/src/components/DownloadMenu.svelte +++ b/src/components/DownloadMenu.svelte @@ -1,5 +1,5 @@ @@ -140,7 +164,7 @@ {#if advanced}
  • - Advanced Data Export + Advanced Data Export
  • {/if} diff --git a/src/modes/exportdata/ExportData.svelte b/src/modes/exportdata/ExportData.svelte index bde068c3..cbad4545 100644 --- a/src/modes/exportdata/ExportData.svelte +++ b/src/modes/exportdata/ExportData.svelte @@ -55,7 +55,8 @@ startDate = urlParams.has('start_day') ? new Date(urlParams.get('start_day')) : param.sparkLineTimeFrame.min; endDate = urlParams.has('end_day') ? new Date(urlParams.get('end_day')) : param.sparkLineTimeFrame.max; - // Also normalize the dates to the current timezone + // Normalize the datest to the current timezone by *subtracting* the timezone + // offset (to account for negative timezones), multiplied by 60000 (minutes -> ms) startDate = new Date(startDate.getTime() - startDate.getTimezoneOffset() * -60000); endDate = new Date(endDate.getTime() - endDate.getTimezoneOffset() * -60000); } @@ -88,7 +89,12 @@ // Populate region based on URL params... but let the user override this later if (urlParams.has('geo_value') && !geoURLSet) { - let infos = infosByLevel[geoType].filter((d) => d.propertyId == urlParams.get('geo_value')); + let geo_value = urlParams.get('geo_value'); + // Allow for lowercase state names e.g. 'ca' -> 'CA' + if (geoType == 'state') { + geo_value = geo_value.toUpperCase(); + } + let infos = infosByLevel[geoType].filter((d) => d.propertyId == geo_value); addRegion(infos[0]); geoURLSet = true; } diff --git a/src/modes/indicator/GeoTable.svelte b/src/modes/indicator/GeoTable.svelte index 542022eb..c95afd6f 100644 --- a/src/modes/indicator/GeoTable.svelte +++ b/src/modes/indicator/GeoTable.svelte @@ -182,7 +182,7 @@
    {title.title} - row.dump} /> + row.dump} {date} {region} {sensor} />

    {@html mousePointerIcon} diff --git a/src/modes/indicator/Indicator.svelte b/src/modes/indicator/Indicator.svelte index 6e6e2987..e07186dd 100644 --- a/src/modes/indicator/Indicator.svelte +++ b/src/modes/indicator/Indicator.svelte @@ -96,7 +96,7 @@

    - +

    diff --git a/src/modes/indicator/IndicatorAbout.svelte b/src/modes/indicator/IndicatorAbout.svelte index e5ef07d8..1fb5e27c 100644 --- a/src/modes/indicator/IndicatorAbout.svelte +++ b/src/modes/indicator/IndicatorAbout.svelte @@ -1,18 +1,44 @@ {#if sensor.value.description} @@ -33,9 +59,7 @@ {/each}
  • - Export Data + Export Data
  • {/if}