Platform
Resources
Pricing
Sign in
Get started
Emanuele Santos
Data Visualization Enthusiast, professor of Computer Science at Universidade Federal do Ceara, Fortaleza, Brazil.
Workspace
Fork
Published
By
Emanuele Santos
Edited
Sep 27, 2022
61 forks
3
Insert cell
Insert cell
Insert cell
topo
=
FileAttachment
(
"chicagoNeighborhoods.json"
)
.
json
(
)
Insert cell
crimes
=
FileAttachment
(
"crimes_chicago_2022_august@1.csv"
)
.
csv
(
{
typed
:
true
}
)
.
then
(
function
(
data
)
{
// The date has a special formating not automatically detected by d3,
// so we need to parse it
const
parseDate
=
d3
.
timeParse
(
"%m/%d/%Y %I:%M:%S %p"
)
;
data
.
forEach
(
function
(
d
)
{
d
.
Date
=
parseDate
(
d
.
Date
)
;
}
)
;
return
data
;
}
)
Insert cell
Insert cell
import
{
vl
}
from
'@vega/vega-lite-api-v5'
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
topo
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
crimes
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
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML