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

    Function named

    • Names an axis, falling back when the layer did not really name it.

      A producer with no label to give writes one of two spellings of "none", and ?? catches only one: undefined takes the fallback, but an empty string is a value and passes straight through. Both spellings mean the same thing here, and a blank name announces worse than a generic one — "X is Apples" at least says which axis is being read, where " is Apples" is a sentence with its noun missing. Whitespace counts as blank for the same reason.

      Exported because LineTrace resolves its own z label against a trace-specific fallback rather than reading this.z.

      Parameters

      • label: string | undefined

        The label the layer carried, if any

      • fallback: string

        The generic name to use when it carried none

      Returns string

      The label to announce