InteractiveChartExtensions
ChartForgeX.Interactivity.Html
Provides convenience methods for rendering charts with opt-in HTML interactivity.
Inheritance
- object
- InteractiveChartExtensions
Methods
public static void SaveInteractiveHtml(Chart chart, string path) #Saves a chart as a self-contained interactive HTML document.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
public static void SaveInteractiveHtml(Chart chart, string path, Action<HtmlChartInteractionOptions>? configure) #Saves a chart as a self-contained interactive HTML document.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>?
- An optional configuration callback for the HTML interaction adapter.
public static void SaveInteractiveHtmlDashboard(IEnumerable<Chart> charts, string path) #Saves several charts as one self-contained interactive dashboard HTML document.
Parameters
- charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart>
- The charts to render.
- path string
- The output file path.
public static void SaveInteractiveHtmlDashboard(IEnumerable<Chart> charts, string path, Action<HtmlInteractiveDashboardOptions>? configure) #Saves several charts as one self-contained interactive dashboard HTML document.
Parameters
- charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart>
- The charts to render.
- path string
- The output file path.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDashboardOptions>?
- An optional configuration callback for the HTML dashboard adapter.
public static string ToInteractiveHtmlDashboardPage(IEnumerable<Chart> charts) #Renders several charts to one self-contained interactive dashboard HTML document.
Parameters
- charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart>
- The charts to render.
Returns
string A complete interactive dashboard document.public static string ToInteractiveHtmlDashboardPage(IEnumerable<Chart> charts, Action<HtmlInteractiveDashboardOptions>? configure) #Renders several charts to one self-contained interactive dashboard HTML document.
Parameters
- charts System.Collections.Generic.IEnumerable<ChartForgeX.Core.Chart>
- The charts to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDashboardOptions>?
- An optional configuration callback for the HTML dashboard adapter.
Returns
string A complete interactive dashboard document.public static string ToInteractiveHtmlFragment(Chart chart) #Renders a chart to a self-contained interactive HTML fragment that can be embedded in a host page.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
string An embeddable interactive HTML fragment.public static string ToInteractiveHtmlFragment(Chart chart, Action<HtmlChartInteractionOptions>? configure) #Renders a chart to a self-contained interactive HTML fragment that can be embedded in a host page.
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
string An embeddable interactive HTML fragment.public static string ToInteractiveHtmlFragmentWithoutAssets(Chart chart) #Renders a chart to an interactive HTML fragment without stylesheet or script assets.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
string An embeddable interactive HTML fragment that expects the host document to register interactive chart assets.public static string ToInteractiveHtmlFragmentWithoutAssets(Chart chart, Action<HtmlChartInteractionOptions>? configure) #Renders a chart to an 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
string An embeddable interactive HTML fragment that expects the host document to register interactive chart assets.public static string ToInteractiveHtmlPage(Chart chart) #Renders a chart to a self-contained interactive HTML document.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
string A complete interactive HTML document.public static string ToInteractiveHtmlPage(Chart chart, Action<HtmlChartInteractionOptions>? configure) #Renders a chart to a self-contained 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
string A complete interactive HTML document.