Class BOBGaugeChart
- Namespace
- BlazOrbit.Charts.Components
- Assembly
- BlazOrbit.Charts.dll
Gauge chart - single-value KPI display rendered as an arc fill against a track. Supports semi (180°), three-quarter (270°) and full (360°) shapes plus optional zone Segments (e.g. green-amber-red thresholds). The current Value drives the fill arc and the centered numeric readout.
public sealed class BOBGaugeChart : BOBChartBase<int, double>, IDataVisualizationFamilyComponent
- Inheritance
-
objectComponentBaseBOBGaugeChart
- Implements
- Inherited Members
Constructors
BOBGaugeChart()
public BOBGaugeChart()
Properties
Caption
Optional caption rendered below the value (e.g. metric name).
[Parameter]
public string? Caption { get; set; }
Property Value
- string
Max
Upper bound of the gauge domain. Default 100.
[Parameter]
public double Max { get; set; }
Property Value
- double
Min
Lower bound of the gauge domain. Default 0.
[Parameter]
public double Min { get; set; }
Property Value
- double
Segments
Optional zone segments (color bands across the domain).
[Parameter]
public IEnumerable<BOBChartGaugeSegment>? Segments { get; set; }
Property Value
- IEnumerable<BOBChartGaugeSegment>
Shape
Arc layout shape. Default Semi.
[Parameter]
public BOBGaugeShape Shape { get; set; }
Property Value
Thickness
Track + value-arc thickness (px). Default 16.
[Parameter]
public double Thickness { get; set; }
Property Value
- double
TrackColor
Color of the track behind the value arc. Default surface-variant.
[Parameter]
public string TrackColor { get; set; }
Property Value
- string
Unit
Optional unit suffix appended after the value (e.g. "%", "ms").
[Parameter]
public string? Unit { get; set; }
Property Value
- string
Value
Current value to display.
[Parameter]
public double Value { get; set; }
Property Value
- double
ValueColor
Color of the value arc (when no Segments). Default palette[0].
[Parameter]
public string? ValueColor { get; set; }
Property Value
- string
ValueFormat
Format string for the centered value readout. Default "0.#".
[Parameter]
public string? ValueFormat { get; set; }
Property Value
- string
Methods
BuildAriaLabel()
Default ARIA label for the chart's <svg> root. Subclasses
override to inject series / value summaries (improves screen-reader
experience).
protected override string BuildAriaLabel()
Returns
- string
RenderSvg(RenderTreeBuilder)
Concrete charts override this to emit SVG content. The supplied
builder is positioned inside the <svg> root, so
implementations only need to add geometry primitives (lines, paths,
rects, text). Sequence numbers must remain unique within the override.
protected override void RenderSvg(RenderTreeBuilder builder)
Parameters
builderRenderTreeBuilderRender tree builder positioned inside the SVG root.