Skip to content
ConsoleMonster
Class

SparklinePresenter

ConsoleMonster.Presenters

Namespace
ConsoleMonster.Presenters
Assembly
ConsoleMonster
Implements
ICellPresenter
Modifiers
sealed

A series as a one-line sparkline in the cell, followed by the last value: ▂▃▅▇▆▄ 42.

Inheritance

  • object
  • SparklinePresenter

Constructors

public SparklinePresenter(int width = 12) #

Creates a sparkline presenter.

Parameters

width int = 12 optional
Cells the sparkline would like (default 12).

Methods

public PresentedValue Present(object? value, PresenterContext context) #

Presents a value.

Parameters

value object? required
The raw value (may be null).
context ConsoleMonster.Presenters.PresenterContext required
Culture, clock, time zone, column statistics and the render context.

Returns

PresentedValue The presented value.

Properties

public int Width { get; } #

Cells the sparkline would like.