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

HtmlInteractiveTopologyRenderer

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

Renders topology charts with the adapter-owned browser interaction runtime.

Inheritance

  • Object
  • HtmlInteractiveTopologyRenderer

Constructors

public HtmlInteractiveTopologyRenderer() #

Methods

public static String BuildInteractionScript(TopologyRenderOptions? options = null) #
Returns: String

Builds the raw JavaScript runtime for host-level asset registration.

Parameters

options ChartForgeX.Topology.TopologyRenderOptions? = null optionalposition: 0
public String RenderFragment(TopologyChart chart, TopologyRenderOptions? options = null) #
Returns: String

Renders a self-contained interactive topology HTML fragment.

Parameters

chart ChartForgeX.Topology.TopologyChart requiredposition: 0
options ChartForgeX.Topology.TopologyRenderOptions? = null optionalposition: 1
public String RenderFragmentWithoutAssets(TopologyChart chart, TopologyRenderOptions? options = null) #
Returns: String

Renders interactive topology markup without CSS or JavaScript assets.

Parameters

chart ChartForgeX.Topology.TopologyChart requiredposition: 0
options ChartForgeX.Topology.TopologyRenderOptions? = null optionalposition: 1
RenderPage 2 overloads
public String RenderPage(TopologyChart chart, TopologyRenderOptions? options = null) #
Returns: String

Renders a complete self-contained interactive topology HTML page.

Parameters

chart ChartForgeX.Topology.TopologyChart requiredposition: 0
options ChartForgeX.Topology.TopologyRenderOptions? = null optionalposition: 1
public String RenderPage(TopologyChart chart, TopologyRenderOptions? options, HtmlAssetReferences? externalAssets) #
Returns: String

Renders a complete interactive topology HTML page. When externalAssets is set, the interaction runtime is linked from its base path instead of inlined; write it once per bundle with HtmlInteractiveAssetFiles.TopologyScript using the same options. Page styles stay inline because they depend on the render options.

Parameters

chart ChartForgeX.Topology.TopologyChart requiredposition: 0
The topology to render.
options ChartForgeX.Topology.TopologyRenderOptions? requiredposition: 1
Optional render options.
externalAssets ChartForgeX.Interactivity.Html.HtmlAssetReferences? requiredposition: 2
Optional shared asset references; null inlines the runtime.

Returns

A complete HTML document.

public String RenderPresentationFragment(TopologyChart chart, Func<PreparedTopology, String> renderSvg, TopologyRenderOptions? options = null) #
Returns: String

Renders a self-contained interactive fragment with producer-owned SVG over the adapter's prepared topology.

Parameters

chart ChartForgeX.Topology.TopologyChart requiredposition: 0
The topology whose metadata, scenarios and HTML controls are rendered.
renderSvg System.Func<ChartForgeX.Topology.PreparedTopology, System.String> requiredposition: 1
Exports trusted SVG from the supplied detached topology. Preserve its geometry, topology metadata and identity scope; the callback runs once after interactive scenario and graph-control policies are applied.
options ChartForgeX.Topology.TopologyRenderOptions? = null optionalposition: 2
Optional topology and HTML render options; caller-owned options are not modified.

Returns

Interactive markup with inline CSS and JavaScript assets.

public String RenderPresentationFragmentWithoutAssets(TopologyChart chart, Func<PreparedTopology, String> renderSvg, TopologyRenderOptions? options = null) #
Returns: String

Renders producer-owned topology SVG and interactive controls without CSS or JavaScript assets.

Parameters

chart ChartForgeX.Topology.TopologyChart requiredposition: 0
The topology whose metadata, scenarios and HTML controls are rendered.
renderSvg System.Func<ChartForgeX.Topology.PreparedTopology, System.String> requiredposition: 1
Exports trusted SVG from the supplied detached topology. Preserve its geometry, topology metadata and identity scope; the callback runs once after interactive scenario and graph-control policies are applied.
options ChartForgeX.Topology.TopologyRenderOptions? = null optionalposition: 2
Optional topology and HTML render options; caller-owned options are not modified.

Returns

Interactive markup that expects the embedding host to register topology HTML assets.

public String RenderPresentationPage(TopologyChart chart, Func<PreparedTopology, String> renderSvg, TopologyRenderOptions? options = null, HtmlAssetReferences? externalAssets = null) #
Returns: String

Renders a complete interactive page with producer-owned SVG over the adapter's prepared topology.

Parameters

chart ChartForgeX.Topology.TopologyChart requiredposition: 0
The topology whose metadata, scenarios and HTML controls are rendered.
renderSvg System.Func<ChartForgeX.Topology.PreparedTopology, System.String> requiredposition: 1
Exports trusted SVG from the supplied detached topology, for example a script-free motion presentation. The callback runs once after interactive scenario and graph-control policies are applied. Retain the supplied geometry, topology metadata and SVG identity scope so browser controls target the same entities.
options ChartForgeX.Topology.TopologyRenderOptions? = null optionalposition: 2
Optional topology and HTML render options; caller-owned options are not modified.
externalAssets ChartForgeX.Interactivity.Html.HtmlAssetReferences? = null optionalposition: 3
Optional shared interaction runtime references; null inlines the runtime.

Returns

A complete HTML document whose viewport uses the prepared presentation's logical width.