Public
Edited
Mar 25
Importers
Insert cell
Insert cell
Insert cell
selected = TimewWidget(incomes, {
x: "Year",
y: "income",
id: "state",
width: width,
xLabel: "Date",
yLabel: "Income",
xTicks: [
[1960, "AAA"],
[1962, null]
],

//Reference Curve
referenceCurves: incomesLines[selectedState]
})
Insert cell
Insert cell
Insert cell
incomesRaw = FileAttachment("Historical Incomes@1.csv").csv({typed : true})
Insert cell
Rent = FileAttachment("grossrents-unadj@1.csv").csv({typed : true})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
TimewWidget = {
try {
return await require(`http://localhost:8080/dist/TimeWidget.js?${Date.now()}`);
} catch (e) {
return await require("time-widget@0.0.25");
}
}
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more