Grouped Boxplot
GroupedBoxplotChartStrategy extends the standard boxplot with an additional grouping
dimension, producing side-by-side boxplots per category — one per unique value of the
grouping variable.
Constructor
from orama.strategies.grouped_boxplot import GroupedBoxplotChartStrategy
strategy = GroupedBoxplotChartStrategy(
fields_metadata=fields_metadata,
category_variables=["region"], # list[str] — multicategorical
value_variable="revenue", # str — NonDerivedNumericalVariable field
group_variable="product_line", # str — single categorical field for groups
horizontal=False,
display_mean=False,
display_sd=False, # bool — requires display_mean=True
color_rules=None,
title=None, # str | None
subtitle=None, # str | None
caption=None, # str | None
description=None, # str | None — interpretive text (not in figure)
storytelling_context=None, # str | None — narrative goal / target audience
category_label=None, # str | None — axis label for the category
value_label=None, # str | None — axis label for the value
group_label=None, # str | None — legend title for the grouping variable
show_legend=True, # bool — show the figure legend
)
get_query_params() returns a single "main" key.
Supported colors
Selectors: ColorSelectorStrategy, ColorSelectByCategoryName.
Assigners: ColorAssignerByGroup.