MAIDR JavaScript API
    Preparing search index...
    • The selector for the slices of a pie, donut or polar area chart.

      Each slice sits in a series group of its own and is drawn in data order — a zero-value slice and a slice hidden through the legend included, at zero sweep — so one selector matches exactly one path per value. When some slices are left out (hidden through the legend), the others are listed by their series group, which still matches them in data order.

      Parameters

      • root: string

        The chart's rootSelector

      • Optionalonly: number[]

        The slices to match, by index; all of them when omitted

      Returns string

      A selector matching the slices