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
PointCountintNumber of data points currently displayed (each occupies one column).
GraphWidthintRendered width of the graph area, in columns.
UnitsPerPointdoubleThe 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
PointCount
Number of data points currently displayed (each occupies one column).
public int PointCount { get; init; }
Property Value
UnitsPerPoint
The caller-supplied value each point represents (e.g. seconds-per-sample).
public double UnitsPerPoint { get; init; }