Class HTMLCharts
java.lang.Object
com.amalgamasimulation.desktop.html.ui.HTMLCharts
Utility methods to create HTML charts from various types of charts from the
'com.amalgamasimulation.charts' package.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HTMLBarChartCreates an HTML bar chart from the givenBarChartdesktop UI component.static HTMLHistogramCharthistogramChart(HistogramChart desktopHistogramChart) Creates an HTML histogram chart with optional CDF visualization.static HTMLLineChartlineChart(NumericLineChart desktopLineChart) Creates an HTML line chart from a desktop NumericLineChart component, preserving stacking configuration and visual sets.static HTMLTimeLineCharttimeLineChart(TimeLineChart desktopTimeLineChart) Creates an HTML line chart with date and time X-axis from the givenTimeLineChartdesktop UI component.
-
Method Details
-
lineChart
Creates an HTML line chart from a desktop NumericLineChart component, preserving stacking configuration and visual sets.
- Parameters:
desktopLineChart- the desktop line chart component to convert- Returns:
- a new
HTMLLineChartinstance with converted configuration
-
timeLineChart
Creates an HTML line chart with date and time X-axis from the givenTimeLineChartdesktop UI component.
- Parameters:
desktopTimeLineChart- the line chart to convert to HTML- Returns:
- a new
HTMLTimeLineChartinstance
-
barChart
Creates an HTML bar chart from the givenBarChartdesktop UI component.
- Parameters:
barChart- the bar chart to convert to HTML- Returns:
- a new
HTMLBarChartinstance
-
histogramChart
Creates an HTML histogram chart with optional CDF visualization.
- Parameters:
desktopHistogramChart- the histogram chart to convert to HTML- Returns:
- a new
HTMLHistogramChartinstance
-