Class HTMLTimeLineChart
java.lang.Object
com.amalgamasimulation.desktop.html.HTMLTag
com.amalgamasimulation.desktop.html.charts.HTMLChart
com.amalgamasimulation.desktop.html.charts.HTMLLineChart
com.amalgamasimulation.desktop.html.charts.HTMLTimeLineChart
- All Implemented Interfaces:
HTMLConvertable
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
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new HTMLTimeLineChart instance with default settings.HTMLTimeLineChart(LineVisualSetContainer visualSetContainer) Constructs a new HTMLTimeLineChart instance from a line visual set container.HTMLTimeLineChart(ILineChartVisualSet... visualSets) Constructs a new HTMLTimeLineChart instance from individual line visual sets. -
Method Summary
Modifier and TypeMethodDescriptionfont(FontDescriptor fontDescriptor) Sets the font of the chart.relativeHeight(double height) Sets the relative height of the chart container as a percentage.relativeWidth(double width) Sets the relative width of the chart container as a percentage.Sets the title of the chart.titleAlignment(com.amalgamasimulation.desktop.html.charts.ApexOptions.ApexAlign alignment) Sets the alignment of the chart title.titleColor(Color color) Sets the color of the chart title.titleFont(FontDescriptor fontDescriptor) Sets the font of the chart title.xAxisTitle(String title) Sets the title for the X-axis.xAxisValueConverter(Function<Object, String> xAxisValueConverter) Sets a converter function for X-axis values formatting.yAxisLabelsDecimalSigns(int decimalSignsCount) Configures the number of decimal places to display on Y-axis labels.yAxisTitle(String title) Sets the title for the Y-axis.Methods inherited from class com.amalgamasimulation.desktop.html.charts.HTMLChart
copy, generateScript, preRenderJS, stacked, toHTMLMethods inherited from class com.amalgamasimulation.desktop.html.HTMLTag
append, attr, backgroundColor, colorToRGBA, fillCopy, fontColor, fontFamily, fontSizeInPx, fontStyle, fontWeight, getAttributes, getChildren, lineHeight, marginInPx, maxHeightInPx, maxWidthInPx, paddingInPx, removeChildren, style, tag, tag, textAlignment, toCSSMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.html.HTMLConvertable
copy, toHTML
-
Constructor Details
-
HTMLTimeLineChart
Constructs a new HTMLTimeLineChart instance from a line visual set container.- Parameters:
visualSetContainer- container holding temporal visual sets and configurations
-
HTMLTimeLineChart
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
Sets the title of the chart.- Overrides:
titlein classHTMLLineChart- Parameters:
title- the title text- Returns:
- this HTMLTimeLineChart instance for method chaining
-
xAxisTitle
Sets the title for the X-axis.- Overrides:
xAxisTitlein classHTMLLineChart- Parameters:
title- axis label text- Returns:
- this HTMLTimeLineChart instance for method chaining
-
yAxisTitle
Sets the title for the Y-axis.- Overrides:
yAxisTitlein classHTMLLineChart- Parameters:
title- axis label text- Returns:
- this HTMLTimeLineChart instance for method chaining
-
titleColor
Sets the color of the chart title.- Overrides:
titleColorin classHTMLLineChart- Parameters:
color- the color of the title- Returns:
- this HTMLTimeLineChart instance for method chaining
-
titleFont
Sets the font of the chart title.- Overrides:
titleFontin classHTMLLineChart- 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:
titleAlignmentin classHTMLLineChart- Parameters:
alignment- the alignment of the title- Returns:
- this HTMLTimeLineChart instance for method chaining
-
relativeWidth
Sets the relative width of the chart container as a percentage.- Overrides:
relativeWidthin classHTMLLineChart- Parameters:
width- the width as a percentage (e.g., 0.5 for 50%)- Returns:
- this HTMLTimeLineChart instance for method chaining
-
relativeHeight
Sets the relative height of the chart container as a percentage.- Overrides:
relativeHeightin classHTMLLineChart- Parameters:
height- the height as a percentage (e.g., 0.5 for 50%)- Returns:
- this HTMLTimeLineChart instance for method chaining
-
font
Sets the font of the chart.- Overrides:
fontin classHTMLLineChart- Parameters:
fontDescriptor- the font descriptor to use for the chart- Returns:
- this HTMLTimeLineChart instance for method chaining
-
xAxisValueConverter
Sets a converter function for X-axis values formatting.- Overrides:
xAxisValueConverterin classHTMLChart- Parameters:
xAxisValueConverter- function to convert raw X-values to display strings- Returns:
- this HTMLTimeLineChart instance for method chaining
-
yAxisLabelsDecimalSigns
Configures the number of decimal places to display on Y-axis labels.- Overrides:
yAxisLabelsDecimalSignsin classHTMLLineChart- 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
-