Class HTMLLineChart

All Implemented Interfaces:
HTMLConvertable
Direct Known Subclasses:
HTMLTimeLineChart

public class HTMLLineChart extends HTMLChart
The HTMLLineChart class represents an HTML-based line chart using the ApexCharts library. Extends HTMLChart to provide line-specific configurations and time series support. Supports multiple data series visualization with fluent-style customization.
Author:
Alexey Glazyrin
  • Constructor Details

    • HTMLLineChart

      public HTMLLineChart(LineVisualSetContainer visualSetContainer)
      Constructs a new HTMLLineChart instance with the specified TimeLineChart.
      Parameters:
      visualSetContainer - the TimeLineChart to render
    • HTMLLineChart

      public HTMLLineChart(List<IAbstractChartVisualSet> listVS)
      Constructs a new HTMLLineChart instance from a list of abstract visual sets.
      Parameters:
      listVS - list of visual sets defining chart data series and styles
    • HTMLLineChart

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

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

    • title

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

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

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

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

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

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

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

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

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

      public HTMLLineChart yAxisLabelsDecimalSigns(int decimalSignsCount)
      Configures the number of decimal places to display on Y-axis labels.
      Overrides:
      yAxisLabelsDecimalSigns in class HTMLChart
      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