Package com.oorian.echarts.options
Class EChartsLineSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsLineSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a line series configuration for ECharts line charts.
Extends EChartsSeries to provide line-specific options such as smoothing, stacking, symbols, and area styling.
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsLineSeries with type set to "line". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the area style configuration.getClip()Gets the clip setting.Gets the connect nulls setting.Gets the emphasis configuration.Gets the item style configuration.getLabel()Gets the label configuration.Gets the line style configuration.Gets the show all symbol setting.Gets the show symbol setting.Gets the smooth curve setting.getStack()Gets the stack group name.getStep()Gets the step line type.Gets the symbol type.Gets the symbol size.Gets the x-axis index.Gets the y-axis index.protected voidinitSpecificFromJson(com.oorian.json.JsonObject obj) Initializes series-specific properties from a JSON object.voidsetAreaStyle(EChartsAreaStyle areaStyle) Sets the area style configuration for filled areas.voidSets whether to clip the line to the coordinate system bounds.voidsetConnectNulls(Boolean connectNulls) Sets whether to connect null/missing data points.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted elements.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration for data points.voidsetLabel(EChartsLabel label) Sets the label configuration for data labels.voidsetLineStyle(EChartsLineStyle lineStyle) Sets the line style configuration.voidsetShowAllSymbol(Boolean showAllSymbol) Sets whether to show all symbols regardless of density.voidsetShowSymbol(Boolean showSymbol) Sets whether to show symbols on data points.voidSets whether to use smooth curves for the line.voidSets the stack group name for stacked line charts.voidSets the step line type (start, middle, end).voidSets the symbol type for data points.voidsetSymbolSize(Number symbolSize) Sets the size of the data point symbols.voidsetXAxisIndex(Integer xAxisIndex) Sets the index of the x-axis to use for this series.voidsetYAxisIndex(Integer yAxisIndex) Sets the index of the y-axis to use for this series.Methods inherited from class com.oorian.echarts.options.EChartsSeries
addData, getData, getName, getType, initFromJson, parseDataArray, setData, setName, setType, toJsonString, toJsonValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oorian.json.Jsonable
initFromJson, initFromJson
-
Constructor Details
-
EChartsLineSeries
public EChartsLineSeries()Constructs a new EChartsLineSeries with type set to "line".
-
-
Method Details
-
setStack
Sets the stack group name for stacked line charts.- Parameters:
stack- the stack group identifier
-
setSmooth
Sets whether to use smooth curves for the line.- Parameters:
smooth- true to enable smooth curves
-
setConnectNulls
Sets whether to connect null/missing data points.- Parameters:
connectNulls- true to connect across null values
-
setClip
Sets whether to clip the line to the coordinate system bounds.- Parameters:
clip- true to clip the line
-
setStep
Sets the step line type (start, middle, end).- Parameters:
step- the step type
-
setXAxisIndex
Sets the index of the x-axis to use for this series.- Parameters:
xAxisIndex- the x-axis index
-
setYAxisIndex
Sets the index of the y-axis to use for this series.- Parameters:
yAxisIndex- the y-axis index
-
setSymbol
Sets the symbol type for data points.- Parameters:
symbol- the symbol type (circle, rect, triangle, etc.)
-
setSymbolSize
Sets the size of the data point symbols.- Parameters:
symbolSize- the symbol size
-
setShowSymbol
Sets whether to show symbols on data points.- Parameters:
showSymbol- true to show symbols
-
setShowAllSymbol
Sets whether to show all symbols regardless of density.- Parameters:
showAllSymbol- true to show all symbols
-
setLineStyle
Sets the line style configuration.- Parameters:
lineStyle- the line style configuration
-
setAreaStyle
Sets the area style configuration for filled areas.- Parameters:
areaStyle- the area style configuration
-
setItemStyle
Sets the item style configuration for data points.- Parameters:
itemStyle- the item style configuration
-
setEmphasis
Sets the emphasis configuration for highlighted elements.- Parameters:
emphasis- the emphasis configuration
-
setLabel
Sets the label configuration for data labels.- Parameters:
label- the label configuration
-
getStack
Gets the stack group name.- Returns:
- the stack group identifier
-
getSmooth
Gets the smooth curve setting.- Returns:
- true if smooth curves are enabled
-
getConnectNulls
Gets the connect nulls setting.- Returns:
- true if null values are connected
-
getClip
Gets the clip setting.- Returns:
- true if clipping is enabled
-
getStep
Gets the step line type.- Returns:
- the step type
-
getXAxisIndex
Gets the x-axis index.- Returns:
- the x-axis index
-
getYAxisIndex
Gets the y-axis index.- Returns:
- the y-axis index
-
getSymbol
Gets the symbol type.- Returns:
- the symbol type
-
getSymbolSize
Gets the symbol size.- Returns:
- the symbol size
-
getShowSymbol
Gets the show symbol setting.- Returns:
- true if symbols are shown
-
getShowAllSymbol
Gets the show all symbol setting.- Returns:
- true if all symbols are shown
-
getLineStyle
Gets the line style configuration.- Returns:
- the line style configuration
-
getAreaStyle
Gets the area style configuration.- Returns:
- the area style configuration
-
getItemStyle
Gets the item style configuration.- Returns:
- the item style configuration
-
getEmphasis
Gets the emphasis configuration.- Returns:
- the emphasis configuration
-
getLabel
Gets the label configuration.- Returns:
- the label configuration
-
initSpecificFromJson
protected void initSpecificFromJson(com.oorian.json.JsonObject obj) Description copied from class:EChartsSeriesInitializes series-specific properties from a JSON object.Subclasses must implement this method to handle their specific properties.
- Specified by:
initSpecificFromJsonin classEChartsSeries- Parameters:
obj- the JSON object containing series properties
-
addSpecificToJson
protected void addSpecificToJson(com.oorian.json.JsonObject obj) Description copied from class:EChartsSeriesAdds series-specific properties to a JSON object.Subclasses must implement this method to serialize their specific properties.
- Specified by:
addSpecificToJsonin classEChartsSeries- Parameters:
obj- the JSON object to add properties to
-