Skip to content

Commit

Permalink
fix: Use selector argument in make_example
Browse files Browse the repository at this point in the history
All of the charts using this function were silently producing no output.
`brush` had been defined globally in an earlier directive

#3544 (comment)
  • Loading branch information
dangotbanned committed Sep 18, 2024
1 parent f43d331 commit fb42da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/user_guide/interactions/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ selection:
return alt.Chart(cars).mark_rect().encode(
x="Cylinders:O",
y="Origin:N",
color=alt.when(brush).then("count()").otherwise(alt.value("lightgray")),
color=alt.when(selector).then("count()").otherwise(alt.value("lightgray")),
).properties(
width=300,
height=180
Expand Down

0 comments on commit fb42da7

Please sign in to comment.