MAIDR Documentation - v4.4.0
    Preparing search index...

    Function formatPlotType

    • Builds a human-readable plot type string with optional orientation prefix. Returns just the type when there is no orientation (no extra whitespace).

      Takes the resolved orientation, not the raw layer field — pass resolveOrientation's result so an undeclared orientation still announces the one the trace is navigated by.

      Parameters

      • plotType: string

        The display name of the plot type, e.g. bar

      • Optionalorientation: Orientation

        The orientation to prefix with, when there is one

      Returns string

      The plot type, prefixed with vertical or horizontal when known