Skip to content
ChartForgeX
Class

HtmlChartGridRenderer

ChartForgeX.Html

Namespace
ChartForgeX.Html
Assembly
ChartForgeX
Modifiers
sealed

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

Inheritance

  • object
  • HtmlChartGridRenderer

Constructors

public HtmlChartGridRenderer() #

Methods

RenderFragment 2 overloads
public string RenderFragment(ChartGrid grid) #

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) #

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) #

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

Parameters

grid ChartForgeX.Core.ChartGrid required

Returns

string