From fb42da7de606ec03b8d58773479374492f6e93be Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:29:53 +0100 Subject: [PATCH] fix: Use `selector` argument in `make_example` All of the charts using this function were silently producing no output. `brush` had been defined globally in an earlier directive https://github.com/vega/altair/pull/3544#discussion_r1764228089 --- doc/user_guide/interactions/parameters.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/user_guide/interactions/parameters.rst b/doc/user_guide/interactions/parameters.rst index a569fb0c5..eeaf8d0f8 100644 --- a/doc/user_guide/interactions/parameters.rst +++ b/doc/user_guide/interactions/parameters.rst @@ -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