Skip to content

Commit

Permalink
fix ci warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mattijn committed Nov 21, 2024
1 parent 1f44896 commit d699500
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/user_guide/transform/pivot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ values on multiple lines:

.. altair-plot::

import altair as alt
from vega_datasets import data
import altair as alt
from vega_datasets import data

source = data.stocks()
base = alt.Chart(source).encode(x='date:T')
columns = sorted(source.symbol.unique())
selection = alt.selection_point(
fields=['date'], nearest=True, on='pointerover', empty=False, clear='pointerout'
)
source = data.stocks()
base = alt.Chart(source).encode(x='date:T')
columns = sorted(source.symbol.unique())
selection = alt.selection_point(
fields=['date'], nearest=True, on='pointerover', empty=False, clear='pointerout'
)

lines = base.mark_line().encode(y='price:Q', color='symbol:N')
points = lines.mark_point().transform_filter(selection)
lines = base.mark_line().encode(y='price:Q', color='symbol:N')
points = lines.mark_point().transform_filter(selection)

rule = base.transform_pivot(
'symbol', value='price', groupby=['date']
Expand All @@ -63,7 +63,7 @@ values on multiple lines:
tooltip=[alt.Tooltip(c, type='quantitative') for c in columns]
).add_params(selection)

lines + points + rule
lines + points + rule


Transform Options
Expand Down

0 comments on commit d699500

Please sign in to comment.