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

HtmlGraphExplorerRenderer

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

Renders GraphScene instances as self-contained dependency-free HTML graph explorers.

Inheritance

  • Object
  • HtmlGraphExplorerRenderer

Constructors

public HtmlGraphExplorerRenderer() #

Methods

public static String BuildFragmentStyle() #
Returns: String

Gets the scoped graph explorer CSS that hosts can register once.

Returns

The raw graph explorer CSS.

public static String BuildInteractionScript() #
Returns: String

Gets the raw dependency-free graph explorer browser runtime.

Returns

The raw JavaScript graph explorer runtime.

public String RenderFragment(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null) #
Returns: String

Renders an embeddable graph explorer fragment containing scoped inline assets.

Parameters

scene ChartForgeX.Interactivity.GraphScene requiredposition: 0
The graph scene to render.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optionalposition: 1
Optional adapter configuration callback.

Returns

A self-contained HTML fragment.

public String RenderPage(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null) #
Returns: String

Renders a complete HTML page containing the graph explorer and its inline assets.

Parameters

scene ChartForgeX.Interactivity.GraphScene requiredposition: 0
The graph scene to render.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optionalposition: 1
Optional adapter configuration callback.

Returns

A complete self-contained HTML document.

public Byte[] RenderStaticPng(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null) #
Returns: Byte[]

Renders a complete graph or planned hierarchy stage as deterministic PNG bytes.

Parameters

scene ChartForgeX.Interactivity.GraphScene requiredposition: 0
stage ChartForgeX.Interactivity.GraphSceneStage? = null optionalposition: 1
configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null optionalposition: 2
public String RenderStaticSvg(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null) #
Returns: String

Renders a complete graph or planned hierarchy stage as deterministic, script-free SVG.

Parameters

scene ChartForgeX.Interactivity.GraphScene requiredposition: 0
stage ChartForgeX.Interactivity.GraphSceneStage? = null optionalposition: 1
configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null optionalposition: 2