PipelineChart
ConsoleMonster.Widgets
Shapes numeric samples into existing chart widgets. Bars retain individual observations; sparklines group by label, preserving arrival order. No-colour output lists values, bucket counts or every trend sample as text.
Inheritance
- object
- PipelineChart
Usage
Explore 21 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 11
- Extension method PipelineChart.WithBins
- Extension method PipelineChart.WithSort
- Extension method PipelineChart.WithTop
- Extension method PipelineChart.WithType
- Extension method PipelineChart.WithUnit
- Method PipelineChart.Add
- Method PipelineChartFluent.WithBins
- Method PipelineChartFluent.WithSort
- Method PipelineChartFluent.WithTop
- Method PipelineChartFluent.WithType
- Method PipelineChartFluent.WithUnit
Accepted by parameters 10
- Extension method PipelineChart.WithBins
- Extension method PipelineChart.WithSort
- Extension method PipelineChart.WithTop
- Extension method PipelineChart.WithType
- Extension method PipelineChart.WithUnit
- Method PipelineChartFluent.WithBins
- Method PipelineChartFluent.WithSort
- Method PipelineChartFluent.WithTop
- Method PipelineChartFluent.WithType
- Method PipelineChartFluent.WithUnit
Constructors
public PipelineChart() #Methods
public PipelineChart Add(string? label, double value) #Adds a finite sample. Labels are literal text; a null label joins the unnamed trend.
Parameters
- label string?
- The sample or group label.
- value double
- A finite number; NaN and infinity are rejected.
public IWidget Build(bool textOnly = false) #Builds a snapshot using the existing renderers, or literal text when colour is unavailable.
Parameters
- textOnly bool = false
- Whether to return numerical text instead of chart glyphs.
public Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void Render(Region region, RenderContext context) #Renders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public static bool TryNumber(object? value, out double number) #Parses a scalar number without treating booleans, dates, null or whitespace as zero.
Parameters
- value object?
- A numeric primitive, decimal or invariant numeric string.
- number double
- The finite value when successful; zero otherwise.
Returns
bool Whether the input is a finite numeric scalar.Inherited Methods
Properties
public IReadOnlyList<ChartItem> Samples { get; } #Valid samples in arrival order. Adding a repeated label does not replace an earlier observation.
public PipelineChartType Type { get; set; } #The chart presentation; defaults to horizontal bars.
public PipelineChartSort Sort { get; set; } #Value order before Top; ties retain arrival order. Histogram observations are never sorted or limited.
public int Top { get; set; } #Maximum bars or trend groups to show; zero shows all. Histogram always uses every valid sample.
public int Bins { get; set; } #Requested histogram bucket count, from 1 through 128. Integral samples use whole-number edges.
Extension Methods
public static PipelineChart WithBins(PipelineChart pipelineChart, int value) #Sets PipelineChart.Bins: Requested histogram bucket count, from 1 through 128. Integral samples use whole-number edges.
Parameters
- pipelineChart ConsoleMonster.Widgets.PipelineChart
- The instance.
- value int
- The value.
public static PipelineChart WithSort(PipelineChart pipelineChart, PipelineChartSort value) #Sets PipelineChart.Sort: Value order before Top; ties retain arrival order. Histogram observations are never sorted or limited.
Parameters
- pipelineChart ConsoleMonster.Widgets.PipelineChart
- The instance.
- value ConsoleMonster.Widgets.PipelineChartSort
- The value.
public static PipelineChart WithTop(PipelineChart pipelineChart, int value) #Sets PipelineChart.Top: Maximum bars or trend groups to show; zero shows all. Histogram always uses every valid sample.
Parameters
- pipelineChart ConsoleMonster.Widgets.PipelineChart
- The instance.
- value int
- The value.
public static PipelineChart WithType(PipelineChart pipelineChart, PipelineChartType value) #Sets PipelineChart.Type: The chart presentation; defaults to horizontal bars.
Parameters
- pipelineChart ConsoleMonster.Widgets.PipelineChart
- The instance.
- value ConsoleMonster.Widgets.PipelineChartType
- The value.
public static PipelineChart WithUnit(PipelineChart pipelineChart, string? value) #Sets PipelineChart.Unit: A unit appended to values and bucket edges.
Parameters
- pipelineChart ConsoleMonster.Widgets.PipelineChart
- The instance.
- value string?
- The value.