Class Legend

java.lang.Object
org.aesh.charts.common.Legend

public class Legend extends Object
Renders a compact legend for multi-series charts.

Example output:

 ── cpu0  ── cpu1  ── mem
 
  • Method Details

    • render

      public static String render(List<String> names, List<String> colors, ChartStyle style)
      Render a single-line legend from series names and colors.
      Parameters:
      names - series names
      colors - ANSI color strings (parallel to names), null entries use default
      style - chart style
      Returns:
      the rendered legend string