Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

HtmlInteractiveChartRenderer

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

Renders a ChartForgeX chart as a self-contained interactive HTML document.

Inheritance

  • Object
  • HtmlInteractiveChartRenderer

Constructors

public HtmlInteractiveChartRenderer() #

Methods

public static String BuildFragmentStyle() #
Returns: String

Builds the stylesheet used by embeddable interactive chart fragments.

Returns

CSS ready to register once in a host document.

public static String BuildInteractionScript() #
Returns: String

Builds the JavaScript runtime used by embeddable interactive chart fragments.

Returns

JavaScript ready to register once in a host document.

RenderFragment 2 overloads
public String RenderFragment(Chart chart) #
Returns: String

Renders the specified chart to a self-contained embeddable interactive HTML fragment.

Parameters

chart ChartForgeX.Core.Chart requiredposition: 0
The chart to render.

Returns

An embeddable interactive HTML fragment.

public String RenderFragment(Chart chart, Action<HtmlChartInteractionOptions>? configure) #
Returns: String

Renders the specified chart to a self-contained embeddable interactive HTML fragment.

Parameters

chart ChartForgeX.Core.Chart requiredposition: 0
The chart to render.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? requiredposition: 1
An optional configuration callback for the HTML interaction adapter.

Returns

An embeddable interactive HTML fragment.

RenderFragmentWithoutAssets 2 overloads
public String RenderFragmentWithoutAssets(Chart chart) #
Returns: String

Renders the specified chart to an embeddable interactive HTML fragment without stylesheet or script assets.

Parameters

chart ChartForgeX.Core.Chart requiredposition: 0
The chart to render.

Returns

An embeddable interactive HTML fragment that expects the caller to register interactive chart assets.

public String RenderFragmentWithoutAssets(Chart chart, Action<HtmlChartInteractionOptions>? configure) #
Returns: String

Renders the specified chart to an embeddable interactive HTML fragment without stylesheet or script assets.

Parameters

chart ChartForgeX.Core.Chart requiredposition: 0
The chart to render.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? requiredposition: 1
An optional configuration callback for the HTML interaction adapter.

Returns

An embeddable interactive HTML fragment that expects the caller to register interactive chart assets.

RenderPage 2 overloads
public String RenderPage(Chart chart) #
Returns: String

Renders the specified chart to a complete interactive HTML document.

Parameters

chart ChartForgeX.Core.Chart requiredposition: 0
The chart to render.

Returns

A complete HTML document.

public String RenderPage(Chart chart, Action<HtmlChartInteractionOptions>? configure) #
Returns: String

Renders the specified chart to a complete interactive HTML document.

Parameters

chart ChartForgeX.Core.Chart requiredposition: 0
The chart to render.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? requiredposition: 1
An optional configuration callback for the HTML interaction adapter.

Returns

A complete HTML document.