Public
Edited
Jun 20, 2023
84 forks
Importers
260 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
days_old = {
const today = new Date();
const birthday = new Date('1975-01-18'); // Update to your birthday here, in YYYY-MM-DD format!
const milliseconds = today - birthday;
const days = milliseconds / 1000 / 60 / 60 / 24; // 1000 milliseconds in a second, 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day
return +days.toFixed(1);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ca_food.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
ca_food.csv
SELECT Category
, year(Date) as year
, sum(Dollars) as YearlyRevenue
FROM ca_food.csv
WHERE year(Date) = 2021
GROUP BY year(Date), Category
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
import {chart as sunburst} from "@d3/zoomable-sunburst"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
forceGraph
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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