API Reference
SegmentedMetricBlock
A generic segmented metric block for progress rows, part-to-whole strips, and distribution rows.
Inheritance
- FactualVisualBlock<SegmentedMetricBlock>
- SegmentedMetricBlock
Usage
Explore 15 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 15
- Method SegmentedMetricBlock.AddItem
- Method SegmentedMetricBlock.Create
- Method SegmentedMetricBlock.WithCaption
- Method SegmentedMetricBlock.WithCard
- Method SegmentedMetricBlock.WithHeaderSymbol
- Method SegmentedMetricBlock.WithHostFrame
- Method SegmentedMetricBlock.WithMetric
- Method SegmentedMetricBlock.WithPadding
- Method SegmentedMetricBlock.WithPngOutputScale
- Method SegmentedMetricBlock.WithSize
- Method SegmentedMetricBlock.WithStyle
- Method SegmentedMetricBlock.WithSubtitle
- Method SegmentedMetricBlock.WithTheme
- Method SegmentedMetricBlock.WithTitle
- Method SegmentedMetricBlock.WithTransparentBackground
Constructors
public SegmentedMetricBlock() #Methods
public SegmentedMetricBlock AddItem(String label, Double value, Double maximum = 100, Int32 segments = 40, ChartColor? color = null, VisualStatus status = None, ChartFillPattern pattern = None, String? delta = null, String? symbol = null, Object? displayValue = null, String? displayFormat = null) #SegmentedMetricBlockAdds a generic segmented metric item.
Parameters
- label System.String
- value System.Double
- maximum System.Double = 100
- segments System.Int32 = 40
- color ChartForgeX.Primitives.ChartColor? = null
- status ChartForgeX.VisualBlocks.VisualStatus = None
- pattern ChartForgeX.Core.ChartFillPattern = None
- delta System.String? = null
- symbol System.String? = null
- displayValue System.Object? = null
- displayFormat System.String? = null
public SegmentedMetricBlock AddItem(SegmentedMetricItem item) #SegmentedMetricBlockAdds a preconfigured segmented metric item.
Parameters
- item ChartForgeX.VisualBlocks.SegmentedMetricItem
public SegmentedMetricBlock AddItem(String label, Double value, Action<SegmentedMetricItem> configure) #SegmentedMetricBlockAdds a segmented metric item and configures it with a callback.
Parameters
- label System.String
- value System.Double
- configure System.Action<ChartForgeX.VisualBlocks.SegmentedMetricItem>
public static SegmentedMetricBlock Create(SegmentedMetricStyle style = ProgressRows) #SegmentedMetricBlockCreates a new segmented metric block.
Parameters
- style ChartForgeX.VisualBlocks.SegmentedMetricStyle = ProgressRows
public SegmentedMetricBlock WithCaption(String caption) #SegmentedMetricBlockSets optional caption text.
Parameters
- caption System.String
public SegmentedMetricBlock WithHeaderSymbol(String symbol) #SegmentedMetricBlockSets optional compact header symbol rendered in a badge.
Parameters
- symbol System.String
public SegmentedMetricBlock WithMetric(String label, Object? value, String? unit = null, String? caption = null, String? format = null) #SegmentedMetricBlockSets the card metric label and value.
Parameters
- label System.String
- value System.Object?
- unit System.String? = null
- caption System.String? = null
- format System.String? = null
public SegmentedMetricBlock WithStyle(SegmentedMetricStyle style) #SegmentedMetricBlockSets the segmented metric visual treatment.
Parameters
- style ChartForgeX.VisualBlocks.SegmentedMetricStyle
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
public override RgbaImage RenderRgba() #RgbaImagepublic override String RenderSvg(String idScope) #StringParameters
- idScope String
public SegmentedMetricBlock WithCard(Boolean enabled = true) #SegmentedMetricBlockParameters
- enabled Boolean = true
public SegmentedMetricBlock WithHostFrame(Boolean hostOwnsFrame = true) #SegmentedMetricBlockParameters
- hostOwnsFrame Boolean = true
public SegmentedMetricBlock WithPadding(Double padding) #SegmentedMetricBlockParameters
- padding Double
public SegmentedMetricBlock WithPadding(Double left, Double top, Double right, Double bottom) #SegmentedMetricBlockParameters
- left Double
- top Double
- right Double
- bottom Double
public SegmentedMetricBlock WithPngOutputScale(Int32 scale) #SegmentedMetricBlockParameters
- scale Int32
public SegmentedMetricBlock WithSize(Int32 width, Int32 height) #SegmentedMetricBlockParameters
- width Int32
- height Int32
public SegmentedMetricBlock WithSubtitle(String subtitle) #SegmentedMetricBlockParameters
- subtitle String
public SegmentedMetricBlock WithTheme(ChartTheme theme) #SegmentedMetricBlockParameters
- theme ChartTheme
public SegmentedMetricBlock WithTitle(String title) #SegmentedMetricBlockParameters
- title String
public SegmentedMetricBlock WithTransparentBackground(Boolean enabled = true) #SegmentedMetricBlockParameters
- enabled Boolean = true
Properties
public SegmentedMetricStyle Style { get; set; } #Gets or sets the visual treatment used for the items.
public IReadOnlyList<SegmentedMetricItem> Items { get; } #Gets metric items.
public String Label { get; set; } #Gets the metric label.
public String Value { get; set; } #Gets the metric value.
public String Unit { get; set; } #Gets the unit suffix rendered beside item values for composition-style blocks.
public String Caption { get; set; } #Gets optional caption text rendered beside the metric.
public String HeaderSymbol { get; set; } #Gets optional compact header symbol rendered in a badge.
Inherited Properties
public String Title { get; set; } #public String Subtitle { get; set; } #public VisualBlockOptions Options { get; } #public virtual String AccessibleName { get; } #