Class
HtmlResponsiveChartRenderer
ChartForgeX.Interactivity.Html
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
- The caller's chart; authored size and axis policies are restored after preparation.
- minimumWidth int = 480
- Width below which the container scrolls.
- maximumWidth int = 1600
- Maximum drawing width, at most 8192 pixels.
- height int? = null
- Fixed drawing height; defaults to the authored height.
- idScope string? = null
- Optional stable SVG identifier scope.
- compressLayouts bool = false
- Compresses the serialized specification; the static fallback remains available.
- printWidth int? = null
- 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.Inherited Methods
Properties
public static string InitializationScript { get; } #The shared initializer for ordinary, inert, revealed and compressed chart fragments.