Skip to content
ConsoleMonster
Class

ScatterPlotFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of ScatterPlot, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • ScatterPlotFluent

Methods

public static ScatterPlot Capacity(ScatterPlot scatterPlot, int value) #

Sets ScatterPlot.Capacity: How many points the plot keeps; the oldest are dropped past it (default 4096).

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value int required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { Capacity = value };    scatterPlot.Capacity(value);
public static ScatterPlot EndLabel(ScatterPlot scatterPlot, string? value) #

Sets ScatterPlot.EndLabel: The literal label under the right end of the x axis (for example "now"), or null for none.

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value string? required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { EndLabel = value };    scatterPlot.EndLabel(value);
public static ScatterPlot Height(ScatterPlot scatterPlot, int value) #

Sets ScatterPlot.Height: Rows for the plot, its x axis and the axis labels (default 8).

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value int required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { Height = value };    scatterPlot.Height(value);
public static ScatterPlot Maximum(ScatterPlot scatterPlot, double? value) #

Sets ScatterPlot.Maximum: A fixed maximum for the y axis, or null for the largest value.

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value double? required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { Maximum = value };    scatterPlot.Maximum(value);
public static ScatterPlot Minimum(ScatterPlot scatterPlot, double? value) #

Sets ScatterPlot.Minimum: A fixed minimum for the y axis, or null (0 when all values are positive).

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value double? required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { Minimum = value };    scatterPlot.Minimum(value);
public static ScatterPlot Role(ScatterPlot scatterPlot, ThemeToken value) #

Sets ScatterPlot.Role: The colour role of points without their own (default ThemeToken.Series1).

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value ConsoleMonster.Styling.ThemeToken required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { Role = value };    scatterPlot.Role(value);
public static ScatterPlot StartLabel(ScatterPlot scatterPlot, string? value) #

Sets ScatterPlot.StartLabel: The literal label under the left end of the x axis (for example "first"), or null for none.

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value string? required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { StartLabel = value };    scatterPlot.StartLabel(value);
public static ScatterPlot Unit(ScatterPlot scatterPlot, string? value) #

Sets ScatterPlot.Unit: A unit appended to the y axis values (for example s).

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value string? required
The value.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { Unit = value };    scatterPlot.Unit(value);
public static ScatterPlot ValueFormatBy(ScatterPlot scatterPlot, Func<double, string>? value) #

Sets ScatterPlot.ValueFormat: Formats the y axis values (for example seconds as 1m 05s), or null for the compact number and ScatterPlot.Unit.

Parameters

scatterPlot ConsoleMonster.Widgets.ScatterPlot required
The instance.
value System.Func<double, string>? required
The callback.

Returns

ScatterPlot The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Widgets.ScatterPlot { ValueFormat = value };    scatterPlot.ValueFormatBy(value);