Platform
Resources
Pricing
Sign in
Get started
Zan
Data Visualization for Data Analysis
Workspace
Fork
Published
before / after
By
Zan
Edited
2 forks
37 stars
1
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
3
Insert cell
Insert cell
Insert cell
Insert cell
numItems
=
50
Insert cell
Insert cell
color
=
(
{
domain
:
[
"matches "
+
text
,
"not selected"
]
,
range
:
[
highlightColor
,
'lightgrey'
]
,
legend
:
true
}
)
Insert cell
selected
=
d
=>
d
.
name
.
toLowerCase
(
)
.
includes
(
text
.
toLowerCase
(
)
)
?
color
.
domain
[
0
]
:
color
.
domain
[
1
]
Insert cell
purchasedItemsSelected
=
purchasedItems
.
filter
(
d
=>
selected
(
d
)
!=
"not selected"
)
Insert cell
Insert cell
Insert cell
purchasedItems
=
FileAttachment
(
"purchasedItemsCSV.csv"
)
.
csv
(
{
typed
:
true
}
)
Insert cell
import
{
textcolor
}
from
"@observablehq/text-color-annotations-in-markdown"
// import additional functionality
Insert cell
import
{
addTooltips
}
from
"@mkfreeman/plot-tooltip"
Insert cell
<
style
>
td
:
nth-child
(
1
)
,
th
:
nth-child
(
1
)
{
display
:
none
;
}
td
:
nth-child
(
2
)
,
th
:
nth-child
(
2
)
{
padding-left
:
0
px
;
}
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