Package com.oorian.echarts.options
Class EChartsRadarSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsRadarSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a radar series configuration for ECharts radar charts.
Extends EChartsSeries to provide radar-specific options such as symbols, line styles, area styles, and data formatting.
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsRadarSeries with type set to "radar". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds radar data as an array of values.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the area style configuration.Gets the emphasis configuration.Gets the item style configuration.getLabel()Gets the label configuration.Gets the line style configuration.Gets the radar component index.Gets the symbol type.Gets the symbol keep aspect ratio setting.com.oorian.json.JsonArrayGets the symbol offset.Gets the symbol rotation angle.Gets the symbol size.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.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.voidsetRadarIndex(Integer radarIndex) Sets the index of the radar component to use for this series.voidSets the symbol type for data points.voidsetSymbolKeepAspect(Boolean symbolKeepAspect) Sets whether to keep the aspect ratio of symbols.voidsetSymbolOffset(Number x, Number y) Sets the offset of symbols from their default position.voidsetSymbolRotate(Number symbolRotate) Sets the rotation angle of symbols.voidsetSymbolSize(Number symbolSize) Sets the size of the data point symbols.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
-
EChartsRadarSeries
public EChartsRadarSeries()Constructs a new EChartsRadarSeries with type set to "radar".
-
-
Method Details
-
addData
Adds radar data as an array of values.- Parameters:
name- the name for this data seriesvalues- array of values corresponding to radar indicators
-
setRadarIndex
Sets the index of the radar component to use for this series.- Parameters:
radarIndex- the radar component 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
-
setSymbolOffset
Sets the offset of symbols from their default position.- Parameters:
x- the x offsety- the y offset
-
setItemStyle
Sets the item style configuration for data points.- Parameters:
itemStyle- the item style configuration
-
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
-
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
-
getRadarIndex
Gets the radar component index.- Returns:
- the radar component 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
-
getSymbolOffset
public com.oorian.json.JsonArray getSymbolOffset()Gets the symbol offset.- Returns:
- the symbol offset array
-
getItemStyle
Gets the item style configuration.- Returns:
- the item style configuration
-
getLineStyle
Gets the line style configuration.- Returns:
- the line style configuration
-
getAreaStyle
Gets the area style configuration.- Returns:
- the area 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
-