Skip to content
ChartForgeX
Class

InteractiveChartExtensions

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
static

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

Inheritance

  • object
  • InteractiveChartExtensions

Methods

SaveInteractiveHtml 2 overloads
public static void SaveInteractiveHtml(Chart chart, string path) #

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) #

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) #

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) #

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) #

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) #

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) #

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) #

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) #

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) #

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) #

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) #

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.