Platform
Resources
Pricing
Sign in
Get started
EBVL
Enrico Bertini's Visualization Lab
Workspace
Fork
Public
Guides and Examples
By
Dan Kerrigan
Edited
Jan 5
ISC
2 forks
4 stars
Guides and Examples
Introduction
JavaScript Basics
Data Transformation
SVG and D3 Basics
Bar Chart Walk-through
Line and Area Charts
Selections and Joins
Maps
Choropleth Color Schemes
Fundamental Graphs with D3
Graphical Encoding Examples
Contextual Elements, Aesthetics, and Clarity
Small Multiples
Small Multiples with Different Axes
Networks
Interaction
Socrata Open Data API & NYC Open Data
Starting a sequential color scale at a darker color
Insert cell
Insert cell
query
=
(
{
'$select'
:
'date_extract_m(created_date) as month, count(*)'
,
'$where'
:
'date_extract_y(created_date) = 2019'
,
'$group'
:
'month'
}
)
Insert cell
url
=
"https://data.cityofnewyork.us/resource/erm2-nwe9.json?"
+
new
URLSearchParams
(
query
)
Insert cell
data
=
(
await
fetch
(
url
,
{
method
:
'GET'
,
headers
:
{
'Content-Type'
:
'application/json'
}
,
}
)
)
.
json
(
)
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
query
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
url
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML