Package com.oorian.echarts.options
Class EChartsScatterSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsScatterSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a scatter series configuration for ECharts scatter plots.
Extends EChartsSeries to provide scatter-specific options such as symbols, large data mode, and styling.
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsScatterSeries with type set to "scatter". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a coordinate pair for the scatter plot.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the emphasis configuration.Gets the item style configuration.getLabel()Gets the label configuration.getLarge()Gets the large data mode setting.Gets the large threshold value.Gets the symbol type.Gets the symbol keep aspect ratio setting.Gets the symbol rotation angle.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.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted points.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration for scatter points.voidsetLabel(EChartsLabel label) Sets the label configuration for data labels.voidSets whether to use large data mode optimization.voidsetLargeThreshold(Integer largeThreshold) Sets the threshold for enabling large data mode.voidSets the symbol type for data points.voidsetSymbolKeepAspect(Boolean symbolKeepAspect) Sets whether to keep the aspect ratio of symbols.voidsetSymbolRotate(Number symbolRotate) Sets the rotation angle of symbols.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
-
EChartsScatterSeries
public EChartsScatterSeries()Constructs a new EChartsScatterSeries with type set to "scatter".
-
-
Method Details
-
addData
Adds a coordinate pair for the scatter plot.- Parameters:
x- the x coordinatey- the y coordinate
-
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
-
setSymbolRotate
Sets the rotation angle of symbols.- Parameters:
symbolRotate- the rotation angle in degrees
-
setSymbolKeepAspect
Sets whether to keep the aspect ratio of symbols.- Parameters:
symbolKeepAspect- true to keep aspect ratio
-
setLarge
Sets whether to use large data mode optimization.- Parameters:
large- true to enable large data mode
-
setLargeThreshold
Sets the threshold for enabling large data mode.- Parameters:
largeThreshold- the threshold value
-
setItemStyle
Sets the item style configuration for scatter points.- Parameters:
itemStyle- the item style configuration
-
setEmphasis
Sets the emphasis configuration for highlighted points.- Parameters:
emphasis- the emphasis configuration
-
setLabel
Sets the label configuration for data labels.- Parameters:
label- the label configuration
-
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
-
getSymbolRotate
Gets the symbol rotation angle.- Returns:
- the rotation angle in degrees
-
getSymbolKeepAspect
Gets the symbol keep aspect ratio setting.- Returns:
- true if aspect ratio is preserved
-
getLarge
Gets the large data mode setting.- Returns:
- true if large data mode is enabled
-
getLargeThreshold
Gets the large threshold value.- Returns:
- the threshold value
-
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
-