Struct SparklineAxisTick
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
A single tick the caller asks the SparklineControl to draw on its X-axis. The
control positions the label at the column of PointIndex (0 = oldest shown
point on the left, PointCount-1 = newest on the right) and clips it to the graph width.
public readonly record struct SparklineAxisTick : IEquatable<SparklineAxisTick>
- Implements
- Inherited Members
- Extension Methods
Constructors
SparklineAxisTick(int, string, Color?)
A single tick the caller asks the SparklineControl to draw on its X-axis. The
control positions the label at the column of PointIndex (0 = oldest shown
point on the left, PointCount-1 = newest on the right) and clips it to the graph width.
public SparklineAxisTick(int PointIndex, string Label, Color? Color = null)
Parameters
PointIndexintData-point index the tick anchors to (0..PointCount-1).
LabelstringText to draw (markup supported).
ColorColor?Optional label color; falls back to the sparkline foreground when null.
Properties
Color
Optional label color; falls back to the sparkline foreground when null.
public Color? Color { get; init; }
Property Value
Label
Text to draw (markup supported).
public string Label { get; init; }
Property Value
PointIndex
Data-point index the tick anchors to (0..PointCount-1).
public int PointIndex { get; init; }