MAIDR JavaScript API
    Preparing search index...

    Function ownTypeLabel

    • The name a layer gives its own chart type, when it is read as a trace type it is not (MaidrLayer.typeLabel).

      Beside chartTypeLabel for the reason that is a free function: the chart's accessible name is built from it before any model exists. Guarded rather than trusted, as a title is, because a producer's JSON can carry anything.

      Parameters

      • Optionallayer: Pick<MaidrLayer, "typeLabel">

        The layer, when there is one

      Returns string | undefined

      The name, trimmed, or undefined when the layer gives none