API Reference
HtmlInteractiveChartRenderer
Renders a ChartForgeX chart as a self-contained interactive HTML document.
Inheritance
- Object
- HtmlInteractiveChartRenderer
Constructors
public HtmlInteractiveChartRenderer() #Methods
public static String BuildFragmentStyle() #StringBuilds the stylesheet used by embeddable interactive chart fragments.
Returns
CSS ready to register once in a host document.
public static String BuildInteractionScript() #StringBuilds the JavaScript runtime used by embeddable interactive chart fragments.
Returns
JavaScript ready to register once in a host document.
public HtmlChartSection PrepareSection(Chart chart, ChartXViewport? viewport = null, Action<HtmlChartInteractionOptions>? configure = null) #HtmlChartSectionPrepares an asset-free interactive section and its matching detached native scene once.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to prepare.
- viewport ChartForgeX.Core.ChartXViewport? = null
- An optional explicit numeric X window for supported vertical Line and StepLine charts. Null prepares the full domain, including when resetting a previous viewport.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? = null
- An optional callback configuring the HTML interaction adapter.
Returns
The section markup and the prepared scene used to render it.
Exceptions
ArgumentNullException– The chart is null.NotSupportedException– An explicit viewport is requested for an unsupported chart.ArgumentOutOfRangeException– An explicit viewport extends outside the full X domain or cannot be mapped.InvalidOperationException– An explicit viewport is requested without observations or a usable plot.
public String RenderFragment(Chart chart) #StringRenders the specified chart to a self-contained embeddable interactive HTML fragment.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
An embeddable interactive HTML fragment.
public String RenderFragment(Chart chart, Action<HtmlChartInteractionOptions>? configure) #StringRenders the specified chart to a self-contained embeddable interactive HTML fragment.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>?
- An optional configuration callback for the HTML interaction adapter.
Returns
An embeddable interactive HTML fragment.
public String RenderFragmentWithoutAssets(Chart chart) #StringRenders the specified chart to an embeddable interactive HTML fragment without stylesheet or script assets.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
An embeddable interactive HTML fragment that expects the caller to register interactive chart assets.
public String RenderFragmentWithoutAssets(Chart chart, Action<HtmlChartInteractionOptions>? configure) #StringRenders the specified chart to an embeddable interactive HTML fragment without stylesheet or script assets.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>?
- An optional configuration callback for the HTML interaction adapter.
Returns
An embeddable interactive HTML fragment that expects the caller to register interactive chart assets.
public String RenderPage(Chart chart) #StringRenders the specified chart to a complete interactive HTML document.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
A complete HTML document.
public String RenderPage(Chart chart, Action<HtmlChartInteractionOptions>? configure) #StringRenders the specified chart to a complete interactive HTML document.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>?
- An optional configuration callback for the HTML interaction adapter.
Returns
A complete HTML document.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?