Add basic risk by age dashboard.
This commit is contained in:
		@@ -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())) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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())) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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())) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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, () => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user