Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

SegmentedMetricItem

Namespace ChartForgeX.VisualBlocks
Assembly ChartForgeX.Visuals
Modifiers sealed

One item in a segmented metric block.

Inheritance

  • Object
  • SegmentedMetricItem

Usage

Explore 10 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.

Accepted by parameters 2

Constructors

public SegmentedMetricItem(String label, Double value) #

Initializes a segmented metric item.

Parameters

label System.String requiredposition: 0
value System.Double requiredposition: 1

Methods

public SegmentedMetricItem WithColor(ChartColor? color) #
Returns: SegmentedMetricItem

Sets an explicit item color.

Parameters

color ChartForgeX.Primitives.ChartColor? requiredposition: 0
public SegmentedMetricItem WithDelta(String delta) #
Returns: SegmentedMetricItem

Sets optional delta text.

Parameters

delta System.String requiredposition: 0
public SegmentedMetricItem WithDisplayValue(Object? displayValue, String? format = null) #
Returns: SegmentedMetricItem

Sets optional display text used instead of a derived item value.

Parameters

displayValue System.Object? requiredposition: 0
format System.String? = null optionalposition: 1
public SegmentedMetricItem WithPattern(ChartFillPattern pattern) #
Returns: SegmentedMetricItem

Sets the optional fill pattern hint.

Parameters

pattern ChartForgeX.Core.ChartFillPattern requiredposition: 0
public SegmentedMetricItem WithProgress(Double maximum, Int32 segments) #
Returns: SegmentedMetricItem

Sets the progress maximum and fixed segment count.

Parameters

maximum System.Double requiredposition: 0
segments System.Int32 requiredposition: 1
public SegmentedMetricItem WithStatus(VisualStatus status) #
Returns: SegmentedMetricItem

Sets the semantic item status.

Parameters

status ChartForgeX.VisualBlocks.VisualStatus requiredposition: 0
public SegmentedMetricItem WithSymbol(String symbol) #
Returns: SegmentedMetricItem

Sets compact symbol text shown by visual treatments that use symbols.

Parameters

symbol System.String requiredposition: 0

Properties

public String Label { get; set; } #

Gets or sets the item label.

public Double Value { get; set; } #

Gets or sets the numeric item value.

public Double Maximum { get; set; } #

Gets or sets the maximum for progress-style items.

public Int32 Segments { get; set; } #

Gets or sets the fixed segment count for progress-style items.

public ChartColor? Color { get; set; } #

Gets or sets an optional item accent color.

public String Delta { get; set; } #

Gets or sets optional delta text.

public String Symbol { get; set; } #

Gets or sets compact symbol text shown in distribution rows.

public String DisplayValue { get; set; } #

Gets or sets optional display text used instead of a derived item value.

public VisualStatus Status { get; set; } #

Gets or sets the semantic item status.

public ChartFillPattern Pattern { get; set; } #

Gets or sets an optional fill pattern hint.