Platform
Resources
Pricing
Sign in
Get started
Nicolas Fernandez
Workspace
Fork
Published
By
Nicolas Fernandez
Edited
Dec 9, 2021
Insert cell
#
selection-testing
Insert cell
viz_genes
=
[
"A"
,
"B"
]
Insert cell
mutable
viz_genes_store
=
viz_genes
Insert cell
viz_genes_store
Insert cell
new_list_element
=
'initial'
Insert cell
{
if
(
new_list_element
!==
'initial'
)
{
viz_genes_store
.
push
(
new_list_element
)
}
}
Insert cell
// mutable viz_genes_store = mutable viz_genes_store.push(viz_genes)
Insert cell
ini_gene
=
'B'
Insert cell
viewof
select
=
Inputs
.
select
(
viz_genes_store
,
{
label
:
"Select one"
,
value
:
ini_gene
}
)
Insert cell
value_to_update
=
100
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
viz_genes
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
viz_genes_store
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
new_list_element
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
ini_gene
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
select
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
value_to_update
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML