Skip to content

Commit

Permalink
docs: Use when in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 4, 2024
1 parent 4fe1e9c commit 6269533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ brush = alt.selection_interval()
points = alt.Chart(source).mark_point().encode(
x='Horsepower',
y='Miles_per_Gallon',
color=alt.condition(brush, 'Origin', alt.value('lightgray'))
color=alt.when(brush).then("Origin").otherwise(alt.value("lightgray"))
).add_params(
brush
)
Expand Down

0 comments on commit 6269533

Please sign in to comment.