Skip to content
ChartForgeX
Class

ChartInteractionOptions

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
Modifiers
sealed
Attributes
Fluent

Holds host-neutral interaction settings that can be consumed by HTML, desktop, or future interactive adapters.

Inheritance

  • object
  • ChartInteractionOptions

Usage

Explore 57 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 28

Constructors

public ChartInteractionOptions() #

Initializes a new instance of the ChartInteractionOptions class.

Methods

public ChartInteractionOptions Disable(ChartInteractionFeatures features) #

Disables one or more interaction features.

Parameters

features ChartForgeX.Interactivity.ChartInteractionFeatures required
The features to disable.

Returns

ChartInteractionOptions The current options instance.
public ChartInteractionOptions Enable(ChartInteractionFeatures features) #

Enables one or more interaction features.

Parameters

features ChartForgeX.Interactivity.ChartInteractionFeatures required
The features to enable.

Returns

ChartInteractionOptions The current options instance.
public bool HasFeature(ChartInteractionFeatures feature) #

Determines whether the specified interaction feature is enabled.

Parameters

feature ChartForgeX.Interactivity.ChartInteractionFeatures required
The interaction feature to check.

Returns

bool true when the feature is enabled; otherwise, false.
public static ChartInteractionOptions ReportReview() #

Returns a configured copy of the default report-review interaction profile.

Returns

ChartInteractionOptions A new default interaction options instance.

Properties

public string? ChartId { get; set; } #

Gets or sets a stable chart identifier used by host adapters for DOM IDs, chart registries, or event routing.

public string? GroupName { get; set; } #

Gets or sets the optional synchronized-chart group name.

public List<ChartInteractionScenario> Scenarios { get; } #

Gets interaction scenarios that host adapters may expose as alternate chart paths, flows, or analytical states.

public string? ActiveScenarioId { get; set; } #

Gets or sets the initial active scenario id.

public bool EnableDeepLinkState { get; set; } #

Gets or sets a value indicating whether adapters may synchronize interaction state with URL or host deep links.

public ChartInteractionFeatures Features { get; set; } #

Gets or sets the enabled interaction feature flags.

public ChartSelectionMode SelectionMode { get; set; } #

Gets or sets how pointer and keyboard activation changes the selected marks.

public ChartBrushAxis BrushAxis { get; set; } #

Gets or sets whether a brush spans both plot axes or only the horizontal axis.

Extension Methods

public static ChartInteractionOptions ActiveScenario(ChartInteractionOptions options, string scenarioId) #

Sets the active scenario id and enables scenario interactivity.

Parameters

options ChartForgeX.Interactivity.ChartInteractionOptions required
The interaction options.
scenarioId string required
The active scenario id.

Returns

ChartInteractionOptions The current interaction options.
public static ChartInteractionOptions ActiveScenarioId(ChartInteractionOptions chartInteractionOptions, string? value) #

Sets ChartInteractionOptions.ActiveScenarioId: Gets or sets the initial active scenario id.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
value string? required
The value.

Returns

ChartInteractionOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Interactivity.ChartInteractionOptions { ActiveScenarioId = value };    chartInteractionOptions.ActiveScenarioId(value);
public static ChartInteractionOptions AddScenario(ChartInteractionOptions options, string id, string label, Action<ChartInteractionScenario>? configure = null) #

Adds a named scenario to the interaction options and enables scenario interactivity.

Parameters

options ChartForgeX.Interactivity.ChartInteractionOptions required
The interaction options.
id string required
The scenario id.
label string required
The scenario label.
configure System.Action<ChartForgeX.Interactivity.ChartInteractionScenario>? = null optional
Optional scenario configuration.

Returns

ChartInteractionOptions The current interaction options.
public static ChartInteractionOptions BrushAxis(ChartInteractionOptions chartInteractionOptions, ChartBrushAxis value) #

Sets ChartInteractionOptions.BrushAxis: Gets or sets whether a brush spans both plot axes or only the horizontal axis.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
value ChartForgeX.Interactivity.ChartBrushAxis required
The value.

Returns

ChartInteractionOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ChartForgeX.Interactivity.ChartInteractionOptions { BrushAxis = value };    chartInteractionOptions.BrushAxis(value);
public static ChartInteractionOptions ChartId(ChartInteractionOptions chartInteractionOptions, string? value) #

Sets ChartInteractionOptions.ChartId: Gets or sets a stable chart identifier used by host adapters for DOM IDs, chart registries, or event routing.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
value string? required
The value.

Returns

ChartInteractionOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ChartForgeX.Interactivity.ChartInteractionOptions { ChartId = value };    chartInteractionOptions.ChartId(value);
public static ChartInteractionOptions DeepLinkState(ChartInteractionOptions options, bool enabled = true) #

Controls whether adapter state may be synchronized with a deep link.

Parameters

options ChartForgeX.Interactivity.ChartInteractionOptions required
The interaction options.
enabled bool = true optional
Whether deep-link state is enabled.

Returns

ChartInteractionOptions The current interaction options.
public static ChartInteractionOptions EnableDeepLinkState(ChartInteractionOptions chartInteractionOptions, bool value = true) #

Sets ChartInteractionOptions.EnableDeepLinkState: Gets or sets a value indicating whether adapters may synchronize interaction state with URL or host deep links.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartInteractionOptions The same instance.

Examples

// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.ChartInteractionOptions { EnableDeepLinkState = value };    chartInteractionOptions.EnableDeepLinkState(value);
public static ChartInteractionOptions Features(ChartInteractionOptions chartInteractionOptions, ChartInteractionFeatures value) #

Sets ChartInteractionOptions.Features: Gets or sets the enabled interaction feature flags.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
value ChartForgeX.Interactivity.ChartInteractionFeatures required
The value.

Returns

ChartInteractionOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ChartForgeX.Interactivity.ChartInteractionOptions { Features = value };    chartInteractionOptions.Features(value);
public static ChartInteractionOptions GroupName(ChartInteractionOptions chartInteractionOptions, string? value) #

Sets ChartInteractionOptions.GroupName: Gets or sets the optional synchronized-chart group name.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
value string? required
The value.

Returns

ChartInteractionOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ChartForgeX.Interactivity.ChartInteractionOptions { GroupName = value };    chartInteractionOptions.GroupName(value);
Scenario 2 overloads
public static ChartInteractionOptions Scenario(ChartInteractionOptions chartInteractionOptions, ChartInteractionScenario item) #

Adds an item to ChartInteractionOptions.Scenarios: Gets interaction scenarios that host adapters may expose as alternate chart paths, flows, or analytical states.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
item ChartForgeX.Interactivity.ChartInteractionScenario required
The item.

Returns

ChartInteractionOptions The same instance.
public static ChartInteractionOptions Scenario(ChartInteractionOptions chartInteractionOptions, Action<ChartInteractionScenario> configure) #

Creates an item, configures it and adds it to ChartInteractionOptions.Scenarios: Gets interaction scenarios that host adapters may expose as alternate chart paths, flows, or analytical states.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
configure System.Action<ChartForgeX.Interactivity.ChartInteractionScenario> required
Configures the new item before it is added.

Returns

ChartInteractionOptions The same instance.
public static ChartInteractionOptions Scenarios(ChartInteractionOptions chartInteractionOptions, IEnumerable<ChartInteractionScenario> items) #

Adds items to ChartInteractionOptions.Scenarios: Gets interaction scenarios that host adapters may expose as alternate chart paths, flows, or analytical states.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Interactivity.ChartInteractionScenario> required
The items, in order.

Returns

ChartInteractionOptions The same instance.
public static ChartInteractionOptions SelectionMode(ChartInteractionOptions chartInteractionOptions, ChartSelectionMode value) #

Sets ChartInteractionOptions.SelectionMode: Gets or sets how pointer and keyboard activation changes the selected marks.

Parameters

chartInteractionOptions ChartForgeX.Interactivity.ChartInteractionOptions required
The instance.
value ChartForgeX.Interactivity.ChartSelectionMode required
The value.

Returns

ChartInteractionOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Interactivity.ChartInteractionOptions { SelectionMode = value };    chartInteractionOptions.SelectionMode(value);