Platform
Resources
Pricing
Sign in
Contact us
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Fork
Public
2 collections
By
Robert Kosara
Edited
Oct 28, 2022
1 fork
Importers
8 stars
Examples for Data Analysts
Discovering Date Patterns
Correlation over time
Targets vs. Actuals
User Retention with Segments
Introduction to data
Spreadsheet-based data collaboration gets supercharged with Observable
Summary Table
Connecting to databases
Observable for Excel Users: Introduction
Data Loading and Cleanup
Adding Columns to Data
Analyzing Data
Modeling in Observable
Plot for Matplotlib Users: Overview
Upset Plots with Observable Plot
Distributions and summary statistics - a collection of Plot examples
Sankey With Animated Gradients
Hacking Power BI Charts with Plot
NF Difference Chart
Greenhouse gas emission projections
Concentration values vs. Time
Plot: regression
Also listed in…
Observable for Excel Users
Insert cell
Insert cell
Insert cell
import
{
fixedStates
}
from
"@observablehq/excel-data-loading"
Insert cell
Insert cell
laserStrikes
=
addColumn
(
fixedStates
,
'year'
,
row
=>
row
[
'Incident Date'
]
.
getFullYear
(
)
)
Insert cell
Insert cell
d3
.
groups
(
laserStrikes
,
d
=>
d
.
year
)
Insert cell
Insert cell
strikesByYear
=
d3
.
groups
(
laserStrikes
,
d
=>
d
.
year
)
.
map
(
d
=>
{
return
{
year
:
d
[
0
]
,
count
:
d
[
1
]
.
length
}
}
)
Insert cell
Insert cell
viewof
table
=
Inputs
.
table
(
strikesByYear
,
{
sort
:
"year"
}
)
Insert cell
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
barY
(
strikesByYear
,
{
x
:
"year"
,
y
:
"count"
,
fill
:
"steelblue"
}
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
Insert cell
laserStrikesCleaned
=
laserStrikes
.
filter
(
d
=>
d
.
year
>
2016
)
Insert cell
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
barY
(
laserStrikesCleaned
,
Plot
.
groupX
(
{
y
:
"count"
}
,
{
x
:
"year"
,
fill
:
"steelblue"
}
)
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
Insert cell
Insert cell
Insert cell
function
addColumn
(
tableData
,
newColumnName
,
newColumnFunction
)
{
return
tableData
.
map
(
row
=>
{
let
returnObject
=
row
;
returnObject
[
newColumnName
]
=
newColumnFunction
(
row
)
return
returnObject
}
)
}
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
Fork
View
Export
Listed in...
Observable for Excel Users
Observable
Examples for Data Analysts
Observable
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
laserStrikes
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
strikesByYear
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
table1
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
table
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
laserStrikesCleaned
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
addColumn
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML