Skip to content
ChartForgeX
Class

ChartStateTimelineOptions

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

State timeline categories and summary. Configure it through ChartOptions.StateTimeline.

Inheritance

  • object
  • ChartStateTimelineOptions

Usage

Explore 33 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 20

Constructors

public ChartStateTimelineOptions() #

Properties

public bool PinColorsInForcedColors { get; set; } #

Gets or sets whether SVG output keeps state marks in their colours in forced-colours mode (Windows high contrast): marks with a status (data-cfx-status: state timeline segments, Gantt lane items, categorical heatmap cells, legend swatches, and also semantic heatmap cells and the calendar no-data swatch) and the hatch and outline drawn over them get forced-color-adjust:none, as report views do for their status chips. Off by default, so forced colours apply as usual. A host that also remaps its colour variables in forced-colours mode must keep the values of the variables these marks use, because custom properties are not affected by forced-color-adjust. PNG output is not affected.

public List<ChartStateCategory> Categories { get; private set; } #

Gets the categorical state map shared by state timelines and categorical heatmaps, in legend order. Keys that are not registered render in the theme's muted colour and show the raw key. The category legend is drawn at the bottom when ChartLegendOptions.Visible is enabled (heatmaps also require ChartHeatmapOptions.ShowCategoryLegend); ChartLegendOptions.Position does not apply to it.

public List<ChartLaneGroup> Groups { get; private set; } #

Gets the nested lane groups shared by state timeline and Gantt lanes, in registration order. A lane whose group matches a registered ID is listed under that group and every ancestor; any other group text keeps the single-level header. Use Chart.AddLaneGroup so parents are validated.

public string? SummaryHeader { get; set; } #

Gets or sets the header for the right-hand summary column of state timelines. This remains an alias of ChartStateTimelineOptions.SummaryHeader for existing callers.

Extension Methods

public static ChartStateTimelineOptions Categories(ChartStateTimelineOptions chartStateTimelineOptions, IEnumerable<ChartStateCategory> items) #

Adds items to ChartStateTimelineOptions.Categories: Gets the categorical state map shared by state timelines and categorical heatmaps, in legend order. Keys that are not registered render in the theme's muted colour and show the raw key. The category legend is drawn at the bottom when ChartLegendOptions.Visible is enabled (heatmaps also require ChartHeatmapOptions.ShowCategoryLegend); ChartLegendOptions.Position does not apply to it.

Parameters

chartStateTimelineOptions ChartForgeX.Core.ChartStateTimelineOptions required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartStateCategory> required
The items, in order.

Returns

ChartStateTimelineOptions The same instance.
public static ChartStateTimelineOptions Category(ChartStateTimelineOptions chartStateTimelineOptions, ChartStateCategory item) #

Adds an item to ChartStateTimelineOptions.Categories: Gets the categorical state map shared by state timelines and categorical heatmaps, in legend order. Keys that are not registered render in the theme's muted colour and show the raw key. The category legend is drawn at the bottom when ChartLegendOptions.Visible is enabled (heatmaps also require ChartHeatmapOptions.ShowCategoryLegend); ChartLegendOptions.Position does not apply to it.

Parameters

chartStateTimelineOptions ChartForgeX.Core.ChartStateTimelineOptions required
The instance.
item ChartForgeX.Core.ChartStateCategory required
The item.

Returns

ChartStateTimelineOptions The same instance.
public static ChartStateTimelineOptions Group(ChartStateTimelineOptions chartStateTimelineOptions, ChartLaneGroup item) #

Adds an item to ChartStateTimelineOptions.Groups: Gets the nested lane groups shared by state timeline and Gantt lanes, in registration order. A lane whose group matches a registered ID is listed under that group and every ancestor; any other group text keeps the single-level header. Use Chart.AddLaneGroup so parents are validated.

Parameters

chartStateTimelineOptions ChartForgeX.Core.ChartStateTimelineOptions required
The instance.
item ChartForgeX.Core.ChartLaneGroup required
The item.

Returns

ChartStateTimelineOptions The same instance.
public static ChartStateTimelineOptions Groups(ChartStateTimelineOptions chartStateTimelineOptions, IEnumerable<ChartLaneGroup> items) #

Adds items to ChartStateTimelineOptions.Groups: Gets the nested lane groups shared by state timeline and Gantt lanes, in registration order. A lane whose group matches a registered ID is listed under that group and every ancestor; any other group text keeps the single-level header. Use Chart.AddLaneGroup so parents are validated.

Parameters

chartStateTimelineOptions ChartForgeX.Core.ChartStateTimelineOptions required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartLaneGroup> required
The items, in order.

Returns

ChartStateTimelineOptions The same instance.
public static ChartStateTimelineOptions PinColorsInForcedColors(ChartStateTimelineOptions chartStateTimelineOptions, bool value = true) #

Sets ChartStateTimelineOptions.PinColorsInForcedColors: Gets or sets whether SVG output keeps state marks in their colours in forced-colours mode (Windows high contrast): marks with a status (data-cfx-status: state timeline segments, Gantt lane items, categorical heatmap cells, legend swatches, and also semantic heatmap cells and the calendar no-data swatch) and the hatch and outline drawn over them get forced-color-adjust:none, as report views do for their status chips. Off by default, so forced colours apply as usual. A host that also remaps its colour variables in forced-colours mode must keep the values of the variables these marks use, because custom properties are not affected by forced-color-adjust. PNG output is not affected.

Parameters

chartStateTimelineOptions ChartForgeX.Core.ChartStateTimelineOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartStateTimelineOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Core.ChartStateTimelineOptions { PinColorsInForcedColors = value };    chartStateTimelineOptions.PinColorsInForcedColors(value);
public static ChartStateTimelineOptions SummaryHeader(ChartStateTimelineOptions chartStateTimelineOptions, string? value) #

Sets ChartStateTimelineOptions.SummaryHeader: Gets or sets the header for the right-hand summary column of state timelines. This remains an alias of ChartStateTimelineOptions.SummaryHeader for existing callers.

Parameters

chartStateTimelineOptions ChartForgeX.Core.ChartStateTimelineOptions required
The instance.
value string? required
The value.

Returns

ChartStateTimelineOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Core.ChartStateTimelineOptions { SummaryHeader = value };    chartStateTimelineOptions.SummaryHeader(value);