Skip to content
ChartForgeX
Class

HtmlResponsiveChartRenderer

ChartForgeX.Interactivity.Html

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

Serializes a native chart layout specification for offline browser layout at arbitrary container widths.

Inheritance

  • object
  • HtmlResponsiveChartRenderer

Remarks

Native preparation owns data, semantic axes and paint. The browser measures text and projects the serialized instructions without scaling typography or strokes.

Constructors

public HtmlResponsiveChartRenderer() #

Methods

public string RenderFragment(Chart chart, int minimumWidth = 480, int maximumWidth = 1600, int? height = null, string? idScope = null, bool compressLayouts = false, int? printWidth = null) #

Renders an offline fragment with one serialized specification and a script-free native fallback.

Parameters

chart ChartForgeX.Core.Chart required
The caller's chart; authored size and axis policies are restored after preparation.
minimumWidth int = 480 optional
Width below which the container scrolls.
maximumWidth int = 1600 optional
Maximum drawing width, at most 8192 pixels.
height int? = null optional
Fixed drawing height; defaults to the authored height.
idScope string? = null optional
Optional stable SVG identifier scope.
compressLayouts bool = false optional
Compresses the serialized specification; the static fallback remains available.
printWidth int? = null optional
Width of the native script-free/print fallback; defaults to the authored width within the bounds.

Returns

string A self-contained fragment with an offline debounced resize and print lifecycle.

Properties

public static string InitializationScript { get; } #

The shared initializer for ordinary, inert, revealed and compressed chart fragments.