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