Skip to content
ConsoleMonster

API Reference

Class

SparklinePresenter

Namespace ConsoleMonster.Presenters
Assembly ConsoleMonster
Implements
Modifiers sealed

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

Inheritance

  • Object
  • SparklinePresenter

Constructors

public SparklinePresenter(Int32 width = 12) #

Creates a sparkline presenter.

Parameters

width System.Int32 = 12 optionalposition: 0
Cells the sparkline would like (default 12).

Methods

public PresentedValue Present(Object? value, PresenterContext context) #
Returns: PresentedValue

Presents a value.

Parameters

value System.Object? requiredposition: 0
The raw value (may be null).
context ConsoleMonster.Presenters.PresenterContext requiredposition: 1
Culture, clock, time zone, column statistics and the render context.

Returns

The presented value.

Properties

public Int32 Width { get; } #

Cells the sparkline would like.