MAIDR JavaScript API
    Preparing search index...

    Function chartTypeLabel

    • The human-readable name of a chart type, as the description dialog writes it.

      A free function beside the map because two callers need it and only one of them holds a trace: Figure.getSubplotSummaries names the layers of panels the reader has not entered, and has nothing but their TraceType. The map is declared Record<TraceType, string>, so every member has an entry and a lookup cannot miss.

      Parameters

      Returns string

      The label, e.g. Scatter Plot for TraceType.SCATTER