Table of Contents

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

PointIndex int

Data-point index the tick anchors to (0..PointCount-1).

Label string

Text to draw (markup supported).

Color Color?

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

Color?

Label

Text to draw (markup supported).

public string Label { get; init; }

Property Value

string

PointIndex

Data-point index the tick anchors to (0..PointCount-1).

public int PointIndex { get; init; }

Property Value

int