Package org.aesh.charts.common
Class HorizontalLine
java.lang.Object
org.aesh.charts.common.HorizontalLine
A horizontal reference line drawn across the chart at a fixed Y value.
Used for threshold lines, baselines, targets, and other reference values.
Example:
chart.addHorizontalLine(HorizontalLine.at(80.0)
.label("threshold")
.color(ANSI.RED_TEXT)
.dashed(true));
-
Method Details
-
at
Create a horizontal line at the given Y value. -
label
-
color
-
dashed
-
yValue
public double yValue() -
label
-
color
-
dashed
public boolean dashed()
-