I've followed and replicated with my dataset two tutorials, linked below
Stacked Bar Chart : https://altair-viz.github.io/gallery/stacked_bar_chart.html
and
Selectable Data : https://altair-viz.github.io/gallery/interactive_cross_highlight.html
I'm having difficulty understanding if Altair is capable of combining these two, though.
Is it possible to have a stacked bar graph, where each "subsection" of the graph is selectable. So, something like if I had data that was like
Category1, Category2
in bars, and each one can have subsections
Sub1, Sub2
I'd have a stacked bar graph where say the Categroy1/Category2 parts that are related to Sub1 are Blue, the parts related to Sub2 are Orange, and I can select any of the 4 parts (Cat1+Sub1, Cat1+Sub2, Cat2+Sub1, Cat2+Sub2, represented as 2 stacked bars) and that part then turns Red.
Is this possible or out-of-scope, and if possible, what am I missing conceptually?