ChartSeries
ConsoleMonster.Widgets
A named series of values in a LineChart; values are plotted at evenly spaced x positions.
Inheritance
- object
- ChartSeries
Usage
Explore 20 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 10
- Property ChartOptions.Series
- Extension method ChartSeries.Label
- Extension method ChartSeries.LabelText
- Extension method ChartSeries.Role
- Method ChartSeriesFluent.Label
- Method ChartSeriesFluent.LabelText
- Method ChartSeriesFluent.Role
- Extension method LineChart.Series
- Property LineChart.Series
- Method LineChartFluent.Series
Accepted by parameters 10
- Extension method ChartOptions.Series
- Extension method ChartOptions.Series
- Method ChartOptionsFluent.Series
- Method ChartOptionsFluent.Series
- Extension method ChartSeries.Label
- Extension method ChartSeries.LabelText
- Extension method ChartSeries.Role
- Method ChartSeriesFluent.Label
- Method ChartSeriesFluent.LabelText
- Method ChartSeriesFluent.Role
Constructors
public ChartSeries(string key, ThemeToken? role = null) #Creates a series.
Parameters
- key string
- The name (legend and live key).
- role ConsoleMonster.Styling.ThemeToken? = null
- The colour role, or null to let the parent chart choose it.
Methods
public void Add(double value, int capacity) #Appends a value, dropping the oldest beyond capacity.
Parameters
- value double
- The value.
- capacity int
- How many values to keep.
Inherited Methods
Properties
public string Label { get; set; } #Visible legend text, independently of the series key.
public RichText? LabelText { get; set; } #A multicolour legend name shown instead of ChartSeries.Key (which stays the key), or null.
Extension Methods
public static ChartSeries Label(ChartSeries chartSeries, string value) #Sets ChartSeries.Label: Visible legend text, independently of the series key.
Parameters
- chartSeries ConsoleMonster.Widgets.ChartSeries
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
chartSeries.Label = value; chartSeries.Label(value);public static ChartSeries LabelText(ChartSeries chartSeries, RichText? value) #Sets ChartSeries.LabelText: A multicolour legend name shown instead of ChartSeries.Key (which stays the key), or null.
Parameters
- chartSeries ConsoleMonster.Widgets.ChartSeries
- The instance.
- value ConsoleMonster.Text.RichText?
- The value.
Examples
// C# initializer or property // C# fluent
chartSeries.LabelText = value; chartSeries.LabelText(value);public static ChartSeries LabelText(ChartSeries chartSeries, Action<RichText> configure) #Configures ChartSeries.LabelText in place: A multicolour legend name shown instead of ChartSeries.Key (which stays the key), or null.
Parameters
- chartSeries ConsoleMonster.Widgets.ChartSeries
- The instance.
- configure System.Action<ConsoleMonster.Text.RichText>
- Configures the value.
public static ChartSeries Role(ChartSeries chartSeries, ThemeToken value) #Sets ChartSeries.Role: The colour role.
Parameters
- chartSeries ConsoleMonster.Widgets.ChartSeries
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
Examples
// C# initializer or property // C# fluent
chartSeries.Role = value; chartSeries.Role(value);