Table of Contents

Struct SparklineAxisContext

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Geometry the SparklineControl hands an AxisProvider so the caller can decide where the axis ticks go and what they say. The control owns only this geometry; the caller owns the meaning (time, sample index, …) and the appearance.

public readonly record struct SparklineAxisContext : IEquatable<SparklineAxisContext>
Implements
Inherited Members
Extension Methods

Constructors

SparklineAxisContext(int, int, double)

Geometry the SparklineControl hands an AxisProvider so the caller can decide where the axis ticks go and what they say. The control owns only this geometry; the caller owns the meaning (time, sample index, …) and the appearance.

public SparklineAxisContext(int PointCount, int GraphWidth, double UnitsPerPoint)

Parameters

PointCount int

Number of data points currently displayed (each occupies one column).

GraphWidth int

Rendered width of the graph area, in columns.

UnitsPerPoint double

The caller-supplied value each point represents (e.g. seconds-per-sample).

Properties

GraphWidth

Rendered width of the graph area, in columns.

public int GraphWidth { get; init; }

Property Value

int

PointCount

Number of data points currently displayed (each occupies one column).

public int PointCount { get; init; }

Property Value

int

UnitsPerPoint

The caller-supplied value each point represents (e.g. seconds-per-sample).

public double UnitsPerPoint { get; init; }

Property Value

double