Class ValueMarker
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
Represents a labeled arrow marker pointing at a specific Y-axis value on the graph edge. Used to highlight current values, targets, or notable data points.
public class ValueMarker
- Inheritance
-
ValueMarker
- Inherited Members
- Extension Methods
Constructors
ValueMarker(double, string, Color, Color, MarkerSide)
Creates a new value marker at the specified value.
public ValueMarker(double value, string label, Color arrowColor, Color labelColor, MarkerSide side = MarkerSide.Right)
Parameters
valuedoubleThe Y-axis value to mark.
labelstringThe label text.
arrowColorColorThe color of the marker arrow.
labelColorColorThe color of the label text.
sideMarkerSideWhich side of the graph the marker appears on.
Properties
ArrowColor
Gets the color of the marker arrow.
public Color ArrowColor { get; }
Property Value
Label
Gets the label text displayed next to the marker arrow.
public string Label { get; }
Property Value
LabelColor
Gets the color of the label text.
public Color LabelColor { get; }
Property Value
Side
Gets which side of the graph the marker appears on.
public MarkerSide Side { get; }
Property Value
Value
Gets the Y-axis value this marker points to.
public double Value { get; }