Add basic risk by age dashboard.

This commit is contained in:
Joshua Bemenderfer
2021-12-31 17:27:35 -05:00
parent 000a28ebdc
commit be2a75a579
671 changed files with 227 additions and 22 deletions

View File

@@ -15,7 +15,7 @@ const store = {
}
async function refreshData() {
store.data.value = await fetch(`/data/state/cases/by-county/${store.parameters.value.county}.json`).then(res => res.json())
store.data.value = await fetch(`/data/overall/cases/by-county/${store.parameters.value.county}.json`).then(res => res.json())
// Annoyingly complicated way to reset the end date to the most recent report date.
if (formatDate(end) === formatDate(new Date())) {

View File

@@ -5,7 +5,7 @@ const store = {
}
async function refreshData() {
store.data.value = await fetch(`/data/state/cases/combined.json`).then(res => res.json())
store.data.value = await fetch(`/data/overall/cases/combined.json`).then(res => res.json())
}
if (globalThis.window) {

View File

@@ -15,7 +15,7 @@ const store = {
}
async function refreshData() {
store.data.value = await fetch(`/data/state/deaths/by-county/${store.parameters.value.county}.json`).then(res => res.json())
store.data.value = await fetch(`/data/overall/deaths/by-county/${store.parameters.value.county}.json`).then(res => res.json())
// Annoyingly complicated way to reset the end date to the most recent report date.
if (formatDate(end) === formatDate(new Date())) {

View File

@@ -5,7 +5,7 @@ const store = {
}
async function refreshData() {
store.data.value = await fetch(`/data/state/deaths/combined.json`).then(res => res.json())
store.data.value = await fetch(`/data/overall/deaths/combined.json`).then(res => res.json())
}
if (globalThis.window) {

View File

@@ -15,7 +15,7 @@ const store = {
}
async function refreshData() {
store.data.value = await fetch(`/data/state/hospitalizations/by-county/${store.parameters.value.county}.json`).then(res => res.json())
store.data.value = await fetch(`/data/overall/hospitalizations/by-county/${store.parameters.value.county}.json`).then(res => res.json())
// Annoyingly complicated way to reset the end date to the most recent report date.
if (formatDate(end) === formatDate(new Date())) {

View File

@@ -15,7 +15,7 @@ const store = {
}
async function refreshData() {
store.data.value = await fetch(`/data/state/testing/by-county/${store.parameters.value.county}.json`).then(res => res.json())
store.data.value = await fetch(`/data/overall/testing/by-county/${store.parameters.value.county}.json`).then(res => res.json())
}
watch(() => store.parameters.value.county, () => {