Skip to content

Commit

Permalink
Switch to tooltip specification which conforms to type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
binste committed Sep 30, 2023
1 parent 10764db commit 54439c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/examples_arguments_syntax/comet_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
y=alt.Y('variety:N', title='Variety'),
size=alt.Size('yield:Q', scale=alt.Scale(range=[0, 12]), legend=alt.Legend(values=[20, 60], title='Barley Yield (bushels/acre)')),
color=alt.Color('delta:Q', scale=alt.Scale(domainMid=0), legend=alt.Legend(title='Yield Delta (%)')),
tooltip=alt.Tooltip(['year:O', 'yield:Q']),
tooltip=[alt.Tooltip('year:O'), alt.Tooltip('yield:Q')],
column=alt.Column('site:N', title='Site')

)
Expand Down
4 changes: 2 additions & 2 deletions tests/examples_methods_syntax/comet_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
alt.Color('delta:Q')
.scale(domainMid=0)
.title('Yield Delta (%)'),
alt.Tooltip(['year:O', 'yield:Q']),
alt.Column('site:N').title('Site')
alt.Column('site:N').title('Site'),
tooltip=[alt.Tooltip('year:O'), alt.Tooltip('yield:Q')],
).transform_pivot(
"year",
value="yield",
Expand Down

0 comments on commit 54439c8

Please sign in to comment.