Sunburst Chart
SunburstChartStrategy renders a multi-level pie chart (sunburst) for hierarchical data.
Each entry in path_variables represents one ring, innermost first.
Constructor
from orama.strategies.sunburst import SunburstChartStrategy
strategy = SunburstChartStrategy(
fields_metadata=fields_metadata,
path_variables=["continent", "country"], # list[str] — hierarchical path, innermost first
aggregation=Aggregation(name="count", function="count"),
sort_by_value=SortOrder.NONE,
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
path_label=None, # str | None — reserved for future use
value_label=None, # str | None — reserved for future use
)
Supported colors
Selectors: ColorSelectorStrategy, ColorSelectByCategoryName,
ColorSelectValuesBelow, ColorSelectValuesAbove, ColorSelectMaxValue, ColorSelectMinValue.
Assigners: ColorAssignerByCategory, ColorAssignerByValue.