You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this comment: #8348 (comment). It is not really clear how we implemented naming of view in top-level parameters for a layered repeater.
This was partly discussed before here: vega/altair#2684 (comment), and potentially initially implemented in this commit: vega/altair@f547323 (this commit was not merged), but this PR vega/altair#2702 was merged where the actual change is included.
Moreover, the behavior we implemented before does work in this situation (using altair from main branch on github):
source=alt.UrlData(
data.flights_2k.url,
format={'parse': {'date': 'date'}}
)
brush=alt.selection(type='interval', encodings=['x'])
# Define the base chart, with the common parts of the# background and highlightsbase=alt.Chart(source).mark_bar().encode(
x=alt.X(alt.repeat('column'), type='quantitative', bin=alt.Bin(maxbins=20)),
y='count()'
).properties(
width=160,
height=130
)
# gray background with selectionbackground=base.encode(
color=alt.value('#ddd')
).add_params(brush)
# blue highlights on the transformed datahighlight=base.transform_filter(brush)
# layer the two charts & repeatchart=alt.layer(
background,
highlight,
data=source
).transform_calculate(
"time",
"hours(datum.date)"
).repeat(column=["distance", "delay", "time"])
We might have missed something here. Maybe this is because the second example contains a layered repeater object, where the first example does not contain a layered repeater.
The text was updated successfully, but these errors were encountered:
In this comment: #8348 (comment). It is not really clear how we implemented naming of view in top-level parameters for a layered repeater.
This was partly discussed before here: vega/altair#2684 (comment), and potentially initially implemented in this commit: vega/altair@f547323 (this commit was not merged), but this PR vega/altair#2702 was merged where the actual change is included.
Moreover, the behavior we implemented before does work in this situation (using altair from main branch on github):
But the following specification:
leads to:
Where the vega-lite specification should be defined similar to this Open the Chart in the Vega Editor as is mentioned in this comment
Which contains a
params
definition as follows:Where our definition looks as such:
The
views
object is different.We might have missed something here. Maybe this is because the second example contains a layered repeater object, where the first example does not contain a layered repeater.
The text was updated successfully, but these errors were encountered: