Class HTMLLineChart
java.lang.Object
com.amalgamasimulation.desktop.html.HTMLTag
com.amalgamasimulation.desktop.html.charts.HTMLChart
com.amalgamasimulation.desktop.html.charts.HTMLLineChart
- All Implemented Interfaces:
HTMLConvertable
- Direct Known Subclasses:
HTMLTimeLineChart
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
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new HTMLLineChart instance with default settings.HTMLLineChart(LineVisualSetContainer visualSetContainer) Constructs a new HTMLLineChart instance with the specified TimeLineChart.HTMLLineChart(ILineChartVisualSet... visualSets) Constructs a new HTMLLineChart instance from individual line visual sets.HTMLLineChart(List<IAbstractChartVisualSet> listVS) Constructs a new HTMLLineChart instance from a list of abstract 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.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, toHTML, xAxisValueConverterMethods 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
-
HTMLLineChart
Constructs a new HTMLLineChart instance with the specified TimeLineChart.- Parameters:
visualSetContainer- the TimeLineChart to render
-
HTMLLineChart
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
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
Sets the title of the chart. -
xAxisTitle
Sets the title for the X-axis.- Overrides:
xAxisTitlein classHTMLChart- Parameters:
title- axis label text- Returns:
- this HTMLLineChart instance for method chaining
-
yAxisTitle
Sets the title for the Y-axis.- Overrides:
yAxisTitlein classHTMLChart- Parameters:
title- axis label text- Returns:
- this HTMLLineChart instance for method chaining
-
titleColor
Sets the color of the chart title.- Overrides:
titleColorin classHTMLChart- Parameters:
color- the color of the title- Returns:
- this HTMLLineChart instance for method chaining
-
titleFont
Sets the font of the chart title. -
titleAlignment
public HTMLLineChart titleAlignment(com.amalgamasimulation.desktop.html.charts.ApexOptions.ApexAlign alignment) Sets the alignment of the chart title.- Overrides:
titleAlignmentin classHTMLChart- Parameters:
alignment- the alignment of the title- Returns:
- this HTMLLineChart instance for method chaining
-
relativeWidth
Sets the relative width of the chart container as a percentage.- Overrides:
relativeWidthin classHTMLChart- Parameters:
width- the width as a percentage (e.g., 0.5 for 50%)- Returns:
- this HTMLLineChart instance for method chaining
-
relativeHeight
Sets the relative height of the chart container as a percentage.- Overrides:
relativeHeightin classHTMLChart- Parameters:
height- the height as a percentage (e.g., 0.5 for 50%)- Returns:
- this HTMLLineChart instance for method chaining
-
font
Sets the font of the chart. -
yAxisLabelsDecimalSigns
Configures the number of decimal places to display on Y-axis labels.- Overrides:
yAxisLabelsDecimalSignsin classHTMLChart- 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
-