Public
Edited
May 24, 2024
Paused
Insert cell
Insert cell
Plot.plot({
grid: true,
color: { legend: true },
marks: [
Plot.dot(data, {
x: "reporting_date",
y: "state_rate",
fill: "state",
tip: true
}),
Plot.linearRegressionY(data, {
x: "reporting_date",
y: "state_rate",
stroke: "pandemic"
})
]
})
Insert cell
data = medicaid_bcs.map((d) => {
// Mathematica analysis of the Quality Measure Reporting (QMR) system reports for the FFY 2022 reporting cycle as of June 1, 2023.
return {
...d,
pandemic: d.ffy >= 2020,
reporting_date: new Date(d.ffy + 1 + "-06-01")
};
})
Insert cell
medicaid_bcs.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

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