Class HTMLTimeLineChart

All Implemented Interfaces:
HTMLConvertable

public class HTMLTimeLineChart extends HTMLLineChart
The HTMLTimeLineChart class represents an HTML-based timeline chart optimized for time-series data. Extends HTMLLineChart to provide temporal axis handling and default line chart configuration using the ApexCharts library. Suitable for visualizing data over time intervals.
Author:
Alexey Glazyrin
  • Constructor Details

    • HTMLTimeLineChart

      public HTMLTimeLineChart(LineVisualSetContainer visualSetContainer)
      Constructs a new HTMLTimeLineChart instance from a line visual set container.
      Parameters:
      visualSetContainer - container holding temporal visual sets and configurations
    • HTMLTimeLineChart

      public HTMLTimeLineChart(ILineChartVisualSet... visualSets)
      Constructs a new HTMLTimeLineChart instance from individual line visual sets.
      Parameters:
      visualSets - array of time-based visual sets to display
    • HTMLTimeLineChart

      public HTMLTimeLineChart()
      Constructs a new HTMLTimeLineChart instance with default settings.
  • Method Details

    • title

      public HTMLTimeLineChart title(String title)
      Sets the title of the chart.
      Overrides:
      title in class HTMLLineChart
      Parameters:
      title - the title text
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • xAxisTitle

      public HTMLTimeLineChart xAxisTitle(String title)
      Sets the title for the X-axis.
      Overrides:
      xAxisTitle in class HTMLLineChart
      Parameters:
      title - axis label text
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • yAxisTitle

      public HTMLTimeLineChart yAxisTitle(String title)
      Sets the title for the Y-axis.
      Overrides:
      yAxisTitle in class HTMLLineChart
      Parameters:
      title - axis label text
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • titleColor

      public HTMLTimeLineChart titleColor(Color color)
      Sets the color of the chart title.
      Overrides:
      titleColor in class HTMLLineChart
      Parameters:
      color - the color of the title
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • titleFont

      public HTMLTimeLineChart titleFont(FontDescriptor fontDescriptor)
      Sets the font of the chart title.
      Overrides:
      titleFont in class HTMLLineChart
      Parameters:
      fontDescriptor - the font descriptor to use for the title
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • titleAlignment

      public HTMLTimeLineChart titleAlignment(com.amalgamasimulation.desktop.html.charts.ApexOptions.ApexAlign alignment)
      Sets the alignment of the chart title.
      Overrides:
      titleAlignment in class HTMLLineChart
      Parameters:
      alignment - the alignment of the title
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • relativeWidth

      public HTMLTimeLineChart relativeWidth(double width)
      Sets the relative width of the chart container as a percentage.
      Overrides:
      relativeWidth in class HTMLLineChart
      Parameters:
      width - the width as a percentage (e.g., 0.5 for 50%)
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • relativeHeight

      public HTMLTimeLineChart relativeHeight(double height)
      Sets the relative height of the chart container as a percentage.
      Overrides:
      relativeHeight in class HTMLLineChart
      Parameters:
      height - the height as a percentage (e.g., 0.5 for 50%)
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • font

      public HTMLTimeLineChart font(FontDescriptor fontDescriptor)
      Sets the font of the chart.
      Overrides:
      font in class HTMLLineChart
      Parameters:
      fontDescriptor - the font descriptor to use for the chart
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • xAxisValueConverter

      public HTMLTimeLineChart xAxisValueConverter(Function<Object,String> xAxisValueConverter)
      Sets a converter function for X-axis values formatting.
      Overrides:
      xAxisValueConverter in class HTMLChart
      Parameters:
      xAxisValueConverter - function to convert raw X-values to display strings
      Returns:
      this HTMLTimeLineChart instance for method chaining
    • yAxisLabelsDecimalSigns

      public HTMLTimeLineChart yAxisLabelsDecimalSigns(int decimalSignsCount)
      Configures the number of decimal places to display on Y-axis labels.
      Overrides:
      yAxisLabelsDecimalSigns in class HTMLLineChart
      Parameters:
      decimalSignsCount - the number of decimal digits to display on Y-axis labels. Must be a non-negative integer
      Returns:
      this HTMLBarChart instance for method chaining