LineChartFluent
ConsoleMonster.Widgets
The fluent methods of LineChart: the generated property methods and the series lookup.
Inheritance
- object
- LineChartFluent
Methods
public static LineChart Capacity(LineChart lineChart, int value) #Sets LineChart.Capacity: How many values each series keeps (default 512).
Parameters
- lineChart ConsoleMonster.Widgets.LineChart
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LineChart { Capacity = value }; Ui.LineChart().Capacity(value);public static LineChart Height(LineChart lineChart, int value) #Sets LineChart.Height: Rows for the plot including the x axis (default 8).
Parameters
- lineChart ConsoleMonster.Widgets.LineChart
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LineChart { Height = value }; Ui.LineChart().Height(value);public static LineChart Maximum(LineChart lineChart, double? value) #Sets LineChart.Maximum: A fixed maximum for the y axis, or null.
Parameters
- lineChart ConsoleMonster.Widgets.LineChart
- The instance.
- value double?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LineChart { Maximum = value }; Ui.LineChart().Maximum(value);public static LineChart Minimum(LineChart lineChart, double? value) #Sets LineChart.Minimum: A fixed minimum for the y axis, or null (0 when all values are positive).
Parameters
- lineChart ConsoleMonster.Widgets.LineChart
- The instance.
- value double?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LineChart { Minimum = value }; Ui.LineChart().Minimum(value);public static LineChart Scatter(LineChart lineChart, bool value = true) #Sets LineChart.Scatter: Whether points are joined by lines (default) or drawn as a scatter.
Parameters
- lineChart ConsoleMonster.Widgets.LineChart
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LineChart { Scatter = value }; Ui.LineChart().Scatter(value);public static ChartSeries Series(LineChart chart, RichText key, ThemeToken? role = null) #Adds a series with a multicolour legend name (its plain text is the key), or returns the existing one.
Parameters
- chart ConsoleMonster.Widgets.LineChart
- The chart.
- key ConsoleMonster.Text.RichText
- The rich name.
- role ConsoleMonster.Styling.ThemeToken? = null
- The colour role, or null for the next series colour.
public static ChartSeries Series(LineChart chart, string key, ThemeToken? role = null) #Adds a series, or returns the existing one with that name.
Parameters
- chart ConsoleMonster.Widgets.LineChart
- The chart.
- key string
- The name.
- role ConsoleMonster.Styling.ThemeToken? = null
- The colour role, or null for the next series colour.
public static LineChart Unit(LineChart lineChart, string? value) #Sets LineChart.Unit: A unit appended to axis labels.
Parameters
- lineChart ConsoleMonster.Widgets.LineChart
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.LineChart { Unit = value }; Ui.LineChart().Unit(value);