Skip to content
ChartForgeX
Class

ChartStateCategory

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed

Describes one categorical state, such as an operational state or a severity: the key that data refers to, its display label, its colour, and how its marks are drawn. Categories are listed in legends in the order they are registered.

Inheritance

  • object
  • ChartStateCategory

Usage

Explore 9 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 5

Constructors

public ChartStateCategory(string key, string label, ChartColor color, ChartStatePattern pattern = Solid, ChartStateEmphasis emphasis = Normal) #

Initializes a new state definition.

Parameters

key string required
The state key used by segments, for example up or degraded.
label string required
The display label shown in the legend and tooltips.
color ChartForgeX.Primitives.ChartColor required
The colour of marks in this state.
pattern ChartForgeX.Core.ChartStatePattern = Solid optional
How marks are filled: solid, hatched, cross-hatched, or outlined.
emphasis ChartForgeX.Core.ChartStateEmphasis = Normal optional
How much marks draw the eye; ChartStateEmphasis.Quiet lightens them.

Properties

public string Key { get; } #

Gets the state key used by segments.

public string Label { get; } #

Gets the display label shown in the legend and tooltips.

public ChartColor Color { get; } #

Gets the colour of marks in this state.

public ChartStatePattern Pattern { get; } #

Gets how marks in this state are filled.

public ChartStateEmphasis Emphasis { get; } #

Gets how much marks in this state draw the eye.