# HtmlGraphExplorerRenderer

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

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

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

**Modifiers**

sealed

Renders [GraphScene](/api/chartforgex-interactivity-graphscene/) instances as self-contained dependency-free HTML graph explorers.

## Inheritance

- object
- HtmlGraphExplorerRenderer

 Filter members   

    Show inherited   

 

## Constructors

 `public HtmlGraphExplorerRenderer()` [#](#constructor-ctor) 

## Methods

 `public string RenderFragment(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null)` [#](#method-renderfragment-chartforgex-interactivity-graphscene-action-chartforgex-interactivity-html-htmlgraphexploreroptions) 

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

Renders an embeddable graph explorer fragment containing scoped inline assets.

Parameters

**scene ChartForgeX.Interactivity.GraphScene required**

The graph scene to render.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optional**

Optional adapter configuration callback.

Returns

 `string` A self-contained HTML fragment. 

 `public string RenderPage(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null)` [#](#method-renderpage-chartforgex-interactivity-graphscene-action-chartforgex-interactivity-html-htmlgraphexploreroptions) 

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

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

Parameters

**scene ChartForgeX.Interactivity.GraphScene required**

The graph scene to render.

**configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optional**

Optional adapter configuration callback.

Returns

 `string` A complete self-contained HTML document. 

 `public byte[] RenderStaticPng(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null)` [#](#method-renderstaticpng-chartforgex-interactivity-graphscene-chartforgex-interactivity-graphscenestage-action-chartforgex-interactivity-html-graphscenestaticrenderoptions) 

[HtmlGraphExplorerRenderer.Static.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlGraphExplorerRenderer.Static.cs#L23)

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

Parameters

**scene ChartForgeX.Interactivity.GraphScene required**

**stage ChartForgeX.Interactivity.GraphSceneStage? = null optional**

**configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null optional**

Returns

 `byte[]` 

 `public string RenderStaticSvg(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null)` [#](#method-renderstaticsvg-chartforgex-interactivity-graphscene-chartforgex-interactivity-graphscenestage-action-chartforgex-interactivity-html-graphscenestaticrenderoptions) 

[HtmlGraphExplorerRenderer.Static.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlGraphExplorerRenderer.Static.cs#L14)

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

Parameters

**scene ChartForgeX.Interactivity.GraphScene required**

**stage ChartForgeX.Interactivity.GraphSceneStage? = null optional**

**configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null optional**

Returns

 `string` 

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

## Properties

 `public static string StyleSheet { get; }` [#](#property-stylesheet) 

[HtmlGraphExplorerRenderer.cs:73](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlGraphExplorerRenderer.cs#L73)

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

 `public static string Script { get; }` [#](#property-script) 

[HtmlGraphExplorerRenderer.cs:79](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlGraphExplorerRenderer.cs#L79)

Gets the raw dependency-free graph explorer browser runtime.

<!-- PowerForge markdown artifact sha256:2C866FA5D7EB774468A7B04EAE46C8D995F1C2882C708C13FFB2D04449256509 -->
