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 because not every caller holds a trace: Figure.getSubplotSummaries names the layers of panels the reader has not entered, and the chart's accessible name is built before any model exists; both have nothing but a TraceType. The map is declared Record<TraceType, MessageKey>, so every member has an entry and a lookup cannot miss.

      Parameters

      Returns string

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