Public
Edited
Jul 25, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
tempchart = plotOverview("Oceanside", params)
Insert cell
mainTitle = metricsMeta[pathogenToShow].mainTitle
Insert cell
params = ({
cutoffdate: smoothingTypes[selectedSmoothing].cutoffdate,
ndlimit: -.0000001,
showdetailtooltip: false})
Insert cell
metrics = [pathogenToShow]
Insert cell
Insert cell
metricsAvailable = [
"Influenza_A_PMMoV",
"Influenza_B_PMMoV",
"RSV_PMMoV",
"Noro_G2_PMMoV",
"HMPV_4_PMMoV",
"MPXV_Combined_PMMoV",
"InfA_H5_PMMoV",
"Rota_PMMoV",
"EVD68_PMMoV",
"HPIV_PMMoV",
"C_auris_PMMoV",
"HAV_PMMoV",
"InfA_H1_PMMoV",
"InfA_H3_PMMoV",
]

Insert cell
Insert cell
gridlineColor = "#742fa8"
Insert cell
metricsAvailable
Insert cell
metricsMeta = ({
MPXV_Combined_PMMoV: {
label: "MPXV",
color: gridlineColor,
mainTitle:
"Tracking the quantity of a gene in the MPXV virus",
ylabel: "Quantity of DNA, normalized"
},
Influenza_A_PMMoV: { label: "Influenza_A",
color: gridlineColor,
mainTitle:
"Tracking the quantity of a gene in the influenza A virus",
ylabel: "Quantity of RNA, normalized"
},
Influenza_B_PMMoV: {
label: "Influenza_B",
color: gridlineColor,
mainTitle: "Tracking the quantity of a gene in the influenza B virus",
ylabel: "Quantity of B RNA, normalized"
},
Noro_G2_PMMoV: {
label: "Norovirus",
color: gridlineColor,
mainTitle: "Tracking the quantity of a gene in norovirus",
ylabel: "Quantity of RNA, normalized"
},
RSV_PMMoV: { label: "RSV",
color: gridlineColor,
mainTitle: "Tracking the quantity of a gene in RSV",
ylabel: "Quantity of RNA, normalized"
},
HMPV_4_PMMoV: {label: "human metapneumovirus",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in human metapneumovirus",
ylabel: "Quantity of RNA, normalized"
},
InfA_H5_PMMoV: {label: "H5N1",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in H5N1",
ylabel: "Quantity of RNA, normalized"
},
Rota_PMMoV: {label: "Rotavirus",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in Rotavirus",
ylabel: "Quantity of RNA, normalized"
},
EVD68_PMMoV: {label: "Enterovirus-D68",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in Enterovirus-D68",
ylabel: "Quantity of RNA, normalized"
},
HPIV_PMMoV: {label: "Human parainfluenza",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in Human parainfluenza",
ylabel: "Quantity of RNA, normalized"
},
C_auris_PMMoV: {label: "Candida auris",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in Candida auris",
ylabel: "Quantity of RNA, normalized"
},
HAV_PMMoV: {label: "Hepatitis A",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in Hepatitis A",
ylabel: "Quantity of RNA, normalized"
},
InfA_H1_PMMoV: {label: "Influenza A H1",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in Influenza A H1",
ylabel: "Quantity of RNA, normalized"
},
InfA_H3_PMMoV: {label: "Influenza A H3",
color: gridlineColor,
mainTitle:"Tracking the quantity of a gene in Influenza A H3",
ylabel: "Quantity of RNA, normalized"
},

})
Insert cell
smoothingTypes = ({
'none': {
smoothing: "",
label: "none: daily sampling",
cutoffdate: "2025-01-01"
},
'smoothed': {
smoothing: "_trimmed5",
label: "smoothed: 5-day trimmed centered mean",
cutoffdate: "2020-01-01"
}
})
Insert cell
ylabel = metricsMeta[pathogenToShow].ylabel
Insert cell
smoothing = smoothingTypes[selectedSmoothing].smoothing
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more