Platform
Resources
Pricing
Sign in
Get started
Taras Novak
I map 🗺️ & graph 📈 data 🈸
Workspace
Fork
Published
3 collections
By
Taras Novak
Edited
Apr 21, 2019
Fork of
Chicago Crimes Arrow Data Vega Viz
Insert cell
Insert cell
chart
=
vl
.
markBar
(
)
.
data
(
{
url
:
dataUrl
,
format
:
{
type
:
'arrow'
}
}
)
.
encode
(
vl
.
y
(
)
.
fieldO
(
'PrimaryType'
)
.
sort
(
{
encoding
:
'x'
}
)
.
axis
(
{
title
:
'Crime Type'
}
)
,
vl
.
x
(
)
.
fieldQ
(
'*'
)
.
count
(
)
.
axis
(
{
title
:
'# of Records'
}
)
)
.
render
(
)
Insert cell
Insert cell
Insert cell
Insert cell
import
{
vl
as
vegaLite
}
from
'@vega/vega-lite-api'
Insert cell
vl
=
{
// add arrow data vega loader
vegaLite
.
vega
.
formats
(
'arrow'
,
await
require
(
'vega-loader-arrow@0.0.6'
)
)
;
return
vegaLite
;
}
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
Listed in...
Apache Arrow
Taras Novak
Vega
Taras Novak
Chicago Crimes
Taras Novak
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chart
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
dataUrl
Edit
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
vl
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML