Platform
Resources
Pricing
Sign in
Contact us
Scott Franz
Workspace
Fork
Public
By
Scott Franz
Edited
Feb 6, 2023
Fork of
SQL + Chart
1
Insert cell
Insert cell
database
=
FileAttachment
(
"chinook.db"
)
.
sqlite
(
)
Insert cell
chinook.db
SELECT * FROM tracks
Insert cell
Plot
.
plot
(
{
caption
:
"What are the common lengths of songs?"
,
x
:
{
transform
:
d
=>
d
/
1000
/
60
,
label
:
"Minutes (s) →"
}
,
marks
:
[
Plot
.
ruleY
(
[
0
]
)
,
Plot
.
rectY
(
query
,
Plot
.
binX
(
{
y
:
"sum"
}
,
{
x
:
"Milliseconds"
}
)
)
]
}
)
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
database
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
query
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
File attachments
chinook.db
SQLite
Databases
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML