MAIDR JavaScript API
    Preparing search index...

    Interface D3BinderResult

    Result of a D3 binder function. Contains the complete MAIDR data structure and the generated layer for further customization if needed.

    interface D3BinderResult {
        maidr: Maidr;
        layer: MaidrLayer;
        layers: MaidrLayer[];
    }
    Index

    Properties

    Properties

    maidr: Maidr

    Complete MAIDR JSON data ready to use with the <Maidr> component or maidr-data attribute.

    layer: MaidrLayer

    The layer the binder is named for, for direct inspection or modification.

    A binder that emits more than one — a violin, which is a KDE curve plus a box summary — puts the rest in layers; this stays the primary one, so a caller written before that existed still reads what it expected.

    layers: MaidrLayer[]

    Every layer the bind produced, in the order the subplot carries them.

    Always populated, and [layer] for the binders that emit one. Read this rather than layer when what you want is "what did this bind produce" rather than "what is this chart".