# HtmlChartGridRenderer

Embeds a prepared chart comparison in dependency-free static HTML.

 Class  

`ChartForgeX.Html`

**Namespace**

`ChartForgeX.Html`

**Assembly**

`ChartForgeX`

**Source**

[HtmlChartGridRenderer.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Html/HtmlChartGridRenderer.cs#L13)

**Modifiers**

sealed

Embeds a prepared chart comparison in dependency-free static HTML.

## Inheritance

- object
- HtmlChartGridRenderer

 Filter members   

    Show inherited   

 

## Constructors

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

## Methods

 RenderFragment 2 overloads 

 `public string RenderFragment(ChartGrid grid)` [#](#method-renderfragment-chartforgex-core-chartgrid) 

[HtmlChartGridRenderer.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Html/HtmlChartGridRenderer.cs#L13)

Renders a chart grid as an embeddable HTML fragment containing its prepared SVG.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

Returns

 `string` 

 `public string RenderFragment(ChartGrid grid, string idScope)` [#](#method-renderfragment-chartforgex-core-chartgrid-string) 

[HtmlChartGridRenderer.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Html/HtmlChartGridRenderer.cs#L20)

Renders a chart grid fragment with a deterministic host ID scope.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**idScope string required**

A stable scope used to keep IDs unique when embedding equivalent fragments together.

Returns

 `string` An HTML fragment containing the complete prepared chart comparison. 

 `public string RenderPage(ChartGrid grid)` [#](#method-renderpage-chartforgex-core-chartgrid) 

[HtmlChartGridRenderer.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Html/HtmlChartGridRenderer.cs#L45)

Renders a complete script-free HTML document with the same grid layout as static exports.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

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

<!-- PowerForge markdown artifact sha256:F9A5965505294B0EC6BEA4630AFE9BEDEBFDE64FC2822D38B86078C84B02DD92 -->
