Skip to main content

breakdown_chart

Function breakdown_chart 

Source
pub fn breakdown_chart(
    periods: &[BreakdownPeriodView],
    opts: BreakdownChartOpts,
) -> ChartSpec
Expand description

Breakdown chart. Two shapes depending on whether the breakdown has period grouping:

  • With periods (len > 1, or the single label is non-empty): x = period label, one series per top-N tag value.
  • Flat (single period, empty label — meaning no period_grouping): x = tag value, a single series.