Class HTMLCharts

java.lang.Object
com.amalgamasimulation.desktop.html.ui.HTMLCharts

public final class HTMLCharts extends Object
Utility methods to create HTML charts from various types of charts from the 'com.amalgamasimulation.charts' package.
  • Method Details

    • lineChart

      public static HTMLLineChart lineChart(NumericLineChart desktopLineChart)
      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 HTMLLineChart instance with converted configuration
    • timeLineChart

      public static HTMLTimeLineChart timeLineChart(TimeLineChart desktopTimeLineChart)
      Creates an HTML line chart with date and time X-axis from the given TimeLineChart desktop UI component.

      Parameters:
      desktopTimeLineChart - the line chart to convert to HTML
      Returns:
      a new HTMLTimeLineChart instance
    • barChart

      public static HTMLBarChart barChart(BarChart barChart)
      Creates an HTML bar chart from the given BarChart desktop UI component.

      Parameters:
      barChart - the bar chart to convert to HTML
      Returns:
      a new HTMLBarChart instance
    • histogramChart

      public static HTMLHistogramChart histogramChart(HistogramChart desktopHistogramChart)
      Creates an HTML histogram chart with optional CDF visualization.

      Parameters:
      desktopHistogramChart - the histogram chart to convert to HTML
      Returns:
      a new HTMLHistogramChart instance