Skip to content

Class Sparkline

A graph of recent values, one column each, the newest at the right edge, drawn to an eighth of a cell. DarkEffekt.Terminal.UI.Sparkline.Push(float) adds a value. One row tall unless DarkEffekt.Terminal.UI.Element.Height is set.

Declaration
public sealed class Sparkline : Element

Inheritance: System.Object -> DarkEffekt.Terminal.UI.Element

The most values kept; older ones are dropped.

Declaration
public int Capacity { get; set; }

The value drawn as an empty column.

Declaration
public float Min { get; set; }

The value drawn as a full column.

Declaration
public float Max { get; set; }
Declaration
public int Count { get; }
Declaration
public void Push(float value)
Type Name
System.Single value
Declaration
public void Clear()

The size this element wants, within the room given.

Declaration
protected override CellSize MeasureCore(CellSize available)

DarkEffekt.Terminal.UI.CellSize

Type Name
DarkEffekt.Terminal.UI.CellSize available
Declaration
protected override void RenderCore(CellCanvas canvas)
Type Name
DarkEffekt.Terminal.UI.CellCanvas canvas