SparklineFluent
ConsoleMonster.Widgets
The fluent methods of Sparkline: the generated property methods and appending values.
Inheritance
- object
- SparklineFluent
Methods
public static Sparkline Capacity(Sparkline sparkline, int value) #Sets Sparkline.Capacity: How many values are kept (default 1024).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Sparkline { Capacity = value }; Ui.Sparkline().Capacity(value);public static Sparkline Height(Sparkline sparkline, int value) #Sets Sparkline.Height: Rows (default 1).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Sparkline { Height = value }; Ui.Sparkline().Height(value);public static Sparkline Label(Sparkline sparkline, string item) #Adds an item to Sparkline.Labels: Optional point labels in value order; labelled trends show an axis and their peak.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- item string
- The item.
public static Sparkline Labels(Sparkline sparkline, IEnumerable<string> items) #Adds items to Sparkline.Labels: Optional point labels in value order; labelled trends show an axis and their peak.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static Sparkline Maximum(Sparkline sparkline, double? value) #Sets Sparkline.Maximum: A fixed maximum, or null to scale to the visible values.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value double?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Sparkline { Maximum = value }; Ui.Sparkline().Maximum(value);public static Sparkline Role(Sparkline sparkline, ThemeToken value) #Sets Sparkline.Role: The colour role (default ThemeToken.Accent).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Sparkline { Role = value }; Ui.Sparkline().Role(value);public static Sparkline ShowLatest(Sparkline sparkline, bool value = true) #Sets Sparkline.ShowLatest: Whether the latest value is shown on the right (default true).
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Sparkline { ShowLatest = value }; Ui.Sparkline().ShowLatest(value);public static Sparkline Title(Sparkline sparkline, string? value) #Sets Sparkline.Title: A caption shown on the left (markup), or null.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Sparkline { Title = value }; Ui.Sparkline().Title(value);public static Sparkline Unit(Sparkline sparkline, string? value) #Sets Sparkline.Unit: A unit appended to the latest value.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Sparkline { Unit = value }; Ui.Sparkline().Unit(value);public static Sparkline Values(Sparkline sparkline, IEnumerable<double> values) #Appends several values.
Parameters
- sparkline ConsoleMonster.Widgets.Sparkline
- The sparkline.
- values System.Collections.Generic.IEnumerable<double>
- The values.