MAIDR JavaScript API
    Preparing search index...

    Type Alias SegmentedTraceType

    SegmentedTraceType:
        | typeof STACKED
        | typeof DODGED
        | typeof NORMALIZED
        | typeof DIVERGING
        | typeof MOSAIC

    Trace types that share the segmented extraction: one category, one value and one series key per mark.

    A diverging bar chart (a population pyramid, a Likert scale) is two series drawn back to back rather than one on top of the other, which changes how the values are read but not how they are extracted — so it is built by buildSegmentedLayer like the other three, selected through config.type.

    A mosaic is a stacked bar whose column widths carry a second magnitude. That width is the one thing the segmented extraction does not already read, so a mosaic is the same core with two extra accessors (D3MosaicConfig).