Skip to content
ChartForgeX
Class

HtmlChartDrilldownOptions

ChartForgeX.Interactivity.Html

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

Child charts that bar and line categories open in the browser, with breadcrumbs back to the parent.

Inheritance

  • object
  • HtmlChartDrilldownOptions

Remarks

A local target embeds its child chart in the page, prepared with the same renderer, so a saved report drills without a host. An on-demand target asks the host for the child when a reader opens it: the chart section dispatches cfxdrillrequest and the host answers through the event's respond callback with a section from HtmlInteractiveChartRenderer.PrepareSection. Static SVG and PNG output, and printing, keep the parent chart.

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 4

Constructors

public HtmlChartDrilldownOptions() #

Methods

public HtmlChartDrilldownOptions Add(string category, Chart child, string? label = null, Action<HtmlChartInteractionOptions>? configure = null) #

Opens an embedded child chart from one category.

Parameters

category string required
The exact text of a label on the chart's category axis.
child ChartForgeX.Core.Chart required
The child chart, prepared with the parent's renderer when the parent section is prepared.
label string? = null optional
The breadcrumb label. Null uses the child chart's title, then the category.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? = null optional
Optional interaction options for the child. The child starts from the parent's runtime, layout, toolbar, text presentation, features and localization; it may add drill-down targets of its own.

Returns

HtmlChartDrilldownOptions The current options.
public HtmlChartDrilldownOptions AddOnDemand(string category, string? label = null) #

Opens a child chart that the host supplies when a reader opens the category.

Parameters

category string required
The exact text of a label on the chart's category axis.
label string? = null optional
The breadcrumb label. Null uses the category.

Returns

HtmlChartDrilldownOptions The current options.

Properties

public IReadOnlyList<HtmlChartDrilldownTarget> Targets { get; } #

Gets the configured targets in the order they were added.

public string? RootLabel { get; set; } #

Gets or sets the breadcrumb label of the parent chart. Null uses the chart title.

Extension Methods

public static HtmlChartDrilldownOptions RootLabel(HtmlChartDrilldownOptions htmlChartDrilldownOptions, string? value) #

Sets HtmlChartDrilldownOptions.RootLabel: Gets or sets the breadcrumb label of the parent chart. Null uses the chart title.

Parameters

htmlChartDrilldownOptions ChartForgeX.Interactivity.Html.HtmlChartDrilldownOptions required
The instance.
value string? required
The value.

Returns

HtmlChartDrilldownOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartDrilldownOptions { RootLabel = value };    htmlChartDrilldownOptions.RootLabel(value);