Skip to content

Commit

Permalink
fix: Update docs to use correct init value for selection_point (#3584)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- authored Sep 9, 2024
1 parent e135c26 commit 682b169
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/examples_arguments_syntax/us_population_over_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
name="Year",
fields=["year"],
bind=alt.binding_range(min=1900, max=2000, step=10, name="Year"),
value={"year": 2000},
value=2000,
)

alt.Chart(source).mark_bar().encode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

slider = alt.binding_range(min=1850, max=2000, step=10)
select_year = alt.selection_point(name='year', fields=['year'],
bind=slider, value={'year': 2000})
bind=slider, value=2000)

base = alt.Chart(source).add_params(
select_year
Expand Down
2 changes: 1 addition & 1 deletion tests/examples_methods_syntax/us_population_over_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
name="Year",
fields=["year"],
bind=alt.binding_range(min=1900, max=2000, step=10, name="Year"),
value={"year": 2000},
value=2000,
)

alt.Chart(source).mark_bar().encode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

slider = alt.binding_range(min=1850, max=2000, step=10)
select_year = alt.selection_point(name='year', fields=['year'],
bind=slider, value={'year': 2000})
bind=slider, value=2000)

base = alt.Chart(source).add_params(
select_year
Expand Down

0 comments on commit 682b169

Please sign in to comment.