# HtmlChartDrilldownOptions

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

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlChartDrilldownOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDrilldownOptions.cs#L19)

**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](/api/chartforgex-interactivity-html-htmlinteractivechartrenderer/). 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.

### Returned or exposed by 5

- Extension method [HtmlChartDrilldownOptions.RootLabel](/api/chartforgex-interactivity-html-htmlchartdrilldownoptions/#extension-rootlabel-chartforgex-interactivity-html-htmlchartdrilldownoptions-string)
- Method [HtmlChartDrilldownOptions.Add](/api/chartforgex-interactivity-html-htmlchartdrilldownoptions/#method-add-string-chartforgex-core-chart-string-action-chartforgex-interactivity-html-htmlchartinteractionoptions)
- Method [HtmlChartDrilldownOptions.AddOnDemand](/api/chartforgex-interactivity-html-htmlchartdrilldownoptions/#method-addondemand-string-string)
- Method [HtmlChartDrilldownOptionsFluent.RootLabel](/api/chartforgex-interactivity-html-htmlchartdrilldownoptionsfluent/#method-rootlabel-chartforgex-interactivity-html-htmlchartdrilldownoptions-string)
- Property [HtmlChartInteractionOptions.Drilldown](/api/chartforgex-interactivity-html-htmlchartinteractionoptions/#property-drilldown)

### Accepted by parameters 4

- Extension method [HtmlChartDrilldownOptions.RootLabel](/api/chartforgex-interactivity-html-htmlchartdrilldownoptions/#extension-rootlabel-chartforgex-interactivity-html-htmlchartdrilldownoptions-string) parameter `htmlChartDrilldownOptions`
- Method [HtmlChartDrilldownOptionsFluent.RootLabel](/api/chartforgex-interactivity-html-htmlchartdrilldownoptionsfluent/#method-rootlabel-chartforgex-interactivity-html-htmlchartdrilldownoptions-string) parameter `htmlChartDrilldownOptions`
- Extension method [HtmlChartInteractionOptions.Drilldown](/api/chartforgex-interactivity-html-htmlchartinteractionoptions/#extension-drilldown-chartforgex-interactivity-html-htmlchartinteractionoptions-action-chartforgex-interactivity-html-htmlchartdrilldownoptions) parameter `configure`
- Method [HtmlChartInteractionOptionsFluent.Drilldown](/api/chartforgex-interactivity-html-htmlchartinteractionoptionsfluent/#method-drilldown-chartforgex-interactivity-html-htmlchartinteractionoptions-action-chartforgex-interactivity-html-htmlchartdrilldownoptions) parameter `configure`

 Filter members   

    Show inherited   

 

## Constructors

 `public HtmlChartDrilldownOptions()` [#](#constructor-ctor) 

[HtmlChartDrilldownOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDrilldownOptions.cs#L19)

## Methods

 `public HtmlChartDrilldownOptions Add(string category, Chart child, string? label = null, Action<HtmlChartInteractionOptions>? configure = null)` [#](#method-add-string-chartforgex-core-chart-string-action-chartforgex-interactivity-html-htmlchartinteractionoptions) 

[HtmlChartDrilldownOptions.cs:40](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDrilldownOptions.cs#L40)

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)` [#](#method-addondemand-string-string) 

[HtmlChartDrilldownOptions.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDrilldownOptions.cs#L50)

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. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public IReadOnlyList<HtmlChartDrilldownTarget> Targets { get; }` [#](#property-targets) 

[HtmlChartDrilldownOptions.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDrilldownOptions.cs#L23)

Gets the configured targets in the order they were added.

 `public string? RootLabel { get; set; }` [#](#property-rootlabel) 

[HtmlChartDrilldownOptions.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlChartDrilldownOptions.cs#L27)

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)` [#](#extension-rootlabel-chartforgex-interactivity-html-htmlchartdrilldownoptions-string) 

Sets [HtmlChartDrilldownOptions.RootLabel](/api/chartforgex-interactivity-html-htmlchartdrilldownoptions/): 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

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

<!-- PowerForge markdown artifact sha256:15D88B8E2432B43D1A376AE681573AAB5EA653DBED6D13B1A81E1A99EF03E527 -->
