Apologies for not being able to provide a lot of code, everything is interconnected and it's not possible right now.
My issue is I created a point chart that serves as an "interactive legend".
legend = alt.Chart(source).mark_point().encode(
y=alt.Y('STATE', axis=alt.Axis(orient='right')),
).add_selection(
select_state
)
The problem is that 50 states are listed. As a result the chart becomes very long and prevents everything from fitting on a single screen.
Is there any way to somehow wrap this chart so that it is shown in multiple columns? I don't think this would be possible given that the legend is a single column point chart.
Is there any way to convert this into some sort of structure in Altair that makes it possible to wrap into multiple columns that is not a chart?
Alternatively, is there a way to reposition my slider? It appears way at the bottom :( If it appeared on the top, I think it would be able to appear on the same screen as everything else and so the legend chart wouldn't be so much of an issue.
slider = alt.binding_range(min=1992, max=2016, step=1)
# 1st selection filter
select_year = alt.selection_single(name="YEAR", fields=['YEAR'],
bind=slider, init={'YEAR': 1992})


