fig_carrier_local_share¶
Generate a figure contrasting carrier local shares for one or more runs.
- Parameters:
One or more SimulationTables to compare.
Whether to measure local share as a percentage of bookings or of leg passengers.
Return only the raw data used to generate the figure.
Chart orientation;
'h'for horizontal bars,'v'for vertical.Add tooltip(s) giving the percentage change of each carrier’s local share relative to a reference source. Pass a source-label string to specify the reference, or
'all'to compare against all other sources.Width of each bar panel in pixels.
If True, return a tuple of
(figure, dataframe)instead of just the figure.
- Returns:
alt.Chart or pd.DataFrame or tuple[alt.Chart, pd.DataFrame] – The Altair chart, or the raw DataFrame if
raw_dfis True, or a(chart, dataframe)tuple ifalso_dfis True.