Rebuild the classic "sales by region" case study in Altair. Input: a line choices R1 R2 … (regions a user will pick), then a CSV Date,Region,Sales.
Create a point selection named region on the field Region, bound to a dropdown (alt.binding_select(options=regions, name="Region "), regions sorted) with the first region as initial value; add it to a line chart of Sales over Date and filter the chart by it. Print widget: select with options ['East', 'North', 'South', 'West'], initial East from the specification.
Then simulate each choice: East: 3 points, total 12800, change 4000 -> 4600 (+15.0%) (first and last value by date) or Central: not an option; finally best region overall: North (largest total).