# InteractiveChartExtensions

Provides convenience methods for rendering charts with opt-in HTML interactivity.

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[InteractiveChartExtensions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L18)

**Modifiers**

static

Provides convenience methods for rendering charts with opt-in HTML interactivity.

## Inheritance

- object
- InteractiveChartExtensions

 Filter members   

    Show inherited   

 

## Methods

 SaveInteractiveHtml 2 overloads 

 `public static void SaveInteractiveHtml(Chart chart, string path)` [#](#method-saveinteractivehtml-chartforgex-core-chart-string) 

[InteractiveChartExtensions.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L63)

Saves a chart as a self-contained interactive HTML document.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

**path string required**

The output file path.

 `public static void SaveInteractiveHtml(Chart chart, string path, Action<HtmlChartInteractionOptions>? configure)` [#](#method-saveinteractivehtml-chartforgex-core-chart-string-action-chartforgex-interactivity-html-htmlchartinteractionoptions) 

[InteractiveChartExtensions.cs:71](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L71)

Saves a chart as a self-contained interactive HTML document.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

**path string required**

The output file path.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? required**

An optional configuration callback for the HTML interaction adapter.

 SaveInteractiveHtmlDashboard 2 overloads 

 `public static void SaveInteractiveHtmlDashboard(IEnumerable<Chart> charts, string path)` [#](#method-saveinteractivehtmldashboard-collections-generic-ienumerable-chartforgex-core-chart-string) 

[InteractiveChartExtensions.cs:93](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L93)

Saves several charts as one self-contained interactive dashboard HTML document.

Parameters

**charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart> required**

The charts to render.

**path string required**

The output file path.

 `public static void SaveInteractiveHtmlDashboard(IEnumerable<Chart> charts, string path, Action<HtmlInteractiveDashboardOptions>? configure)` [#](#method-saveinteractivehtmldashboard-collections-generic-ienumerable-chartforgex-core-chart-string-action-chartforgex-interactivity-html-htmlinteractivedashboardoptions) 

[InteractiveChartExtensions.cs:101](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L101)

Saves several charts as one self-contained interactive dashboard HTML document.

Parameters

**charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart> required**

The charts to render.

**path string required**

The output file path.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDashboardOptions>? required**

An optional configuration callback for the HTML dashboard adapter.

 ToInteractiveHtmlDashboardPage 2 overloads 

 `public static string ToInteractiveHtmlDashboardPage(IEnumerable<Chart> charts)` [#](#method-tointeractivehtmldashboardpage-collections-generic-ienumerable-chartforgex-core-chart) 

[InteractiveChartExtensions.cs:78](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L78)

Renders several charts to one self-contained interactive dashboard HTML document.

Parameters

**charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart> required**

The charts to render.

Returns

 `string` A complete interactive dashboard document. 

 `public static string ToInteractiveHtmlDashboardPage(IEnumerable<Chart> charts, Action<HtmlInteractiveDashboardOptions>? configure)` [#](#method-tointeractivehtmldashboardpage-collections-generic-ienumerable-chartforgex-core-chart-action-chartforgex-interactivity-html-htmlinteractivedashboardoptions) 

[InteractiveChartExtensions.cs:86](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L86)

Renders several charts to one self-contained interactive dashboard HTML document.

Parameters

**charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart> required**

The charts to render.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDashboardOptions>? required**

An optional configuration callback for the HTML dashboard adapter.

Returns

 `string` A complete interactive dashboard document. 

 ToInteractiveHtmlFragment 2 overloads 

 `public static string ToInteractiveHtmlFragment(Chart chart)` [#](#method-tointeractivehtmlfragment-chartforgex-core-chart) 

[InteractiveChartExtensions.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L33)

Renders a chart to a self-contained interactive HTML fragment that can be embedded in a host page.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

Returns

 `string` An embeddable interactive HTML fragment. 

 `public static string ToInteractiveHtmlFragment(Chart chart, Action<HtmlChartInteractionOptions>? configure)` [#](#method-tointeractivehtmlfragment-chartforgex-core-chart-action-chartforgex-interactivity-html-htmlchartinteractionoptions) 

[InteractiveChartExtensions.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L41)

Renders a chart to a self-contained interactive HTML fragment that can be embedded in a host page.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? required**

An optional configuration callback for the HTML interaction adapter.

Returns

 `string` An embeddable interactive HTML fragment. 

 ToInteractiveHtmlFragmentWithoutAssets 2 overloads 

 `public static string ToInteractiveHtmlFragmentWithoutAssets(Chart chart)` [#](#method-tointeractivehtmlfragmentwithoutassets-chartforgex-core-chart) 

[InteractiveChartExtensions.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L48)

Renders a chart to an interactive HTML fragment without stylesheet or script assets.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

Returns

 `string` An embeddable interactive HTML fragment that expects the host document to register interactive chart assets. 

 `public static string ToInteractiveHtmlFragmentWithoutAssets(Chart chart, Action<HtmlChartInteractionOptions>? configure)` [#](#method-tointeractivehtmlfragmentwithoutassets-chartforgex-core-chart-action-chartforgex-interactivity-html-htmlchartinteractionoptions) 

[InteractiveChartExtensions.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L56)

Renders a chart to an interactive HTML fragment without stylesheet or script assets.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? required**

An optional configuration callback for the HTML interaction adapter.

Returns

 `string` An embeddable interactive HTML fragment that expects the host document to register interactive chart assets. 

 ToInteractiveHtmlPage 2 overloads 

 `public static string ToInteractiveHtmlPage(Chart chart)` [#](#method-tointeractivehtmlpage-chartforgex-core-chart) 

[InteractiveChartExtensions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L18)

Renders a chart to a self-contained interactive HTML document.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

Returns

 `string` A complete interactive HTML document. 

 `public static string ToInteractiveHtmlPage(Chart chart, Action<HtmlChartInteractionOptions>? configure)` [#](#method-tointeractivehtmlpage-chartforgex-core-chart-action-chartforgex-interactivity-html-htmlchartinteractionoptions) 

[InteractiveChartExtensions.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveChartExtensions.cs#L26)

Renders a chart to a self-contained interactive HTML document.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to render.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? required**

An optional configuration callback for the HTML interaction adapter.

Returns

 `string` A complete interactive HTML document. 

## 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?` 

<!-- PowerForge markdown artifact sha256:D078DD68FBAB91A8BABFB9A6F082143469030543313B4F5B9DDFBE4D1FBDCA1E -->
