Class Marker

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

public class Marker extends Object
A marker on a chart — an annotated point that highlights a specific data value (e.g., a change detection, regression, anomaly).

Markers are rendered as a highlighted character at the data point position, optionally with a label. They can be used to indicate change detections from systems like Horreum/h5m.

Example:

 chart.addMarker(Marker.at(timestamp, value)
         .label("regression")
         .color(ANSI.RED_TEXT)
         .symbol('!'));
 
  • Method Details

    • at

      public static Marker at(double x, double y)
      Create a marker at the given data coordinates.
    • atTime

      public static Marker atTime(long epochMillis, double value)
      Create a marker at a timestamp and value (for time series charts).
    • label

      public Marker label(String label)
      Set the label shown near the marker point.
    • color

      public Marker color(String color)
      Set the ANSI color for the marker symbol and label.
    • symbol

      public Marker symbol(char symbol)
      Set the symbol character rendered at the marker position.

      Common choices:

      • '!' — alert/regression
      • '●' — filled circle (default)
      • '▲' — triangle up
      • '▼' — triangle down
      • '★' — star
      • '⚠' — warning sign
      • 'X' — ASCII fallback
    • x

      public double x()
    • y

      public double y()
    • label

      public String label()
    • color

      public String color()
    • symbol

      public char symbol()