Package com.oorian.echarts.options
Class EChartsRadar
java.lang.Object
com.oorian.echarts.options.EChartsRadar
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a radar coordinate system configuration for ECharts radar charts.
Implements Jsonable to support JSON serialization and deserialization for ECharts.
Contains indicators that define the axes of the radar chart.
- Author:
- Oorian
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a radar indicator that defines an axis on the radar chart. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndicator(String name, Number max) Adds an indicator with name and maximum value.voidaddIndicator(String name, Number min, Number max) Adds an indicator with name, minimum, and maximum values.Gets the axis label configuration.Gets the axis line configuration.Gets the axis name configuration.Gets the axis tick configuration.com.oorian.json.JsonArrayGets the center position.Gets the list of indicators.Gets the radius value.getShape()Gets the shape type.Gets the split area configuration.Gets the split line configuration.Gets the split number.Gets the start angle.voidinitFromJson(com.oorian.json.JsonValue json) voidsetAxisLabel(EChartsAxisLabel axisLabel) Sets the axis label configuration.voidsetAxisLine(EChartsAxisLine axisLine) Sets the axis line configuration.voidsetAxisName(EChartsAxisName axisName) Sets the axis name configuration.voidsetAxisTick(EChartsAxisTick axisTick) Sets the axis tick configuration.voidSets the center position of the radar chart.voidsetIndicator(List<EChartsRadar.Indicator> indicator) Sets the list of indicators for the radar axes.voidSets the radius of the radar chart as a single value.voidSets the radius of the radar chart as inner and outer radius.voidSets the shape of the radar chart (polygon or circle).voidsetSplitArea(EChartsSplitArea splitArea) Sets the split area configuration.voidsetSplitLine(EChartsSplitLine splitLine) Sets the split line configuration.voidsetSplitNumber(Integer splitNumber) Sets the number of split sections on the radar.voidsetStartAngle(Number startAngle) Sets the starting angle of the radar chart.com.oorian.json.JsonValueMethods 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
-
EChartsRadar
public EChartsRadar()Constructs a new EChartsRadar with an empty indicator list.
-
-
Method Details
-
setCenter
Sets the center position of the radar chart.- Parameters:
x- the x coordinate (can be percentage or pixel value)y- the y coordinate (can be percentage or pixel value)
-
setRadius
Sets the radius of the radar chart as a single value.- Parameters:
radius- the radius value
-
setRadius
Sets the radius of the radar chart as inner and outer radius.- Parameters:
innerRadius- the inner radius valueouterRadius- the outer radius value
-
setStartAngle
Sets the starting angle of the radar chart.- Parameters:
startAngle- the start angle in degrees
-
setShape
Sets the shape of the radar chart (polygon or circle).- Parameters:
shape- the shape type
-
setSplitNumber
Sets the number of split sections on the radar.- Parameters:
splitNumber- the number of splits
-
setAxisName
Sets the axis name configuration.- Parameters:
axisName- the axis name configuration
-
setAxisLine
Sets the axis line configuration.- Parameters:
axisLine- the axis line configuration
-
setAxisTick
Sets the axis tick configuration.- Parameters:
axisTick- the axis tick configuration
-
setAxisLabel
Sets the axis label configuration.- Parameters:
axisLabel- the axis label configuration
-
setSplitLine
Sets the split line configuration.- Parameters:
splitLine- the split line configuration
-
setSplitArea
Sets the split area configuration.- Parameters:
splitArea- the split area configuration
-
setIndicator
Sets the list of indicators for the radar axes.- Parameters:
indicator- the list of indicators
-
getCenter
public com.oorian.json.JsonArray getCenter()Gets the center position.- Returns:
- the center position array
-
getRadius
Gets the radius value.- Returns:
- the radius value
-
getStartAngle
Gets the start angle.- Returns:
- the start angle in degrees
-
getShape
Gets the shape type.- Returns:
- the shape type
-
getSplitNumber
Gets the split number.- Returns:
- the number of splits
-
getAxisName
Gets the axis name configuration.- Returns:
- the axis name configuration
-
getAxisLine
Gets the axis line configuration.- Returns:
- the axis line configuration
-
getAxisTick
Gets the axis tick configuration.- Returns:
- the axis tick configuration
-
getAxisLabel
Gets the axis label configuration.- Returns:
- the axis label configuration
-
getSplitLine
Gets the split line configuration.- Returns:
- the split line configuration
-
getSplitArea
Gets the split area configuration.- Returns:
- the split area configuration
-
getIndicator
Gets the list of indicators.- Returns:
- the list of indicators
-
addIndicator
Adds an indicator with name and maximum value.- Parameters:
name- the indicator namemax- the maximum value
-
addIndicator
Adds an indicator with name, minimum, and maximum values.- Parameters:
name- the indicator namemin- the minimum valuemax- the maximum value
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) - Specified by:
initFromJsonin interfacecom.oorian.json.Jsonable
-
toJsonValue
public com.oorian.json.JsonValue toJsonValue()- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable
-
toJsonString
- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable
-