Package org.aesh.charts.common
Class Marker
java.lang.Object
org.aesh.charts.common.Marker
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 Summary
Modifier and TypeMethodDescriptionstatic Markerat(double x, double y) Create a marker at the given data coordinates.static MarkeratTime(long epochMillis, double value) Create a marker at a timestamp and value (for time series charts).color()Set the ANSI color for the marker symbol and label.label()Set the label shown near the marker point.charsymbol()symbol(char symbol) Set the symbol character rendered at the marker position.doublex()doubley()
-
Method Details
-
at
Create a marker at the given data coordinates. -
atTime
Create a marker at a timestamp and value (for time series charts). -
label
Set the label shown near the marker point. -
color
Set the ANSI color for the marker symbol and label. -
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
-
color
-
symbol
public char symbol()
-