blessed-components - v1.20.0
    Preparing search index...

    Function renderLegend

    • Renders a deterministic legend for chart series or categorical values.

      Markers are included in the text output so the legend remains meaningful in no-color terminals. Dynamic labels, markers, descriptions, and separators are stripped of ANSI sequences and Blessed tags.

      Parameters

      Returns string

      Plain terminal text without ANSI sequences or Blessed tags.

      RangeError Thrown when width is invalid, labels are empty, or markers are empty.