Class EChartsRadar

java.lang.Object
com.oorian.echarts.options.EChartsRadar
All Implemented Interfaces:
com.oorian.json.Jsonable

public class EChartsRadar extends Object implements 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
  • Constructor Details

    • EChartsRadar

      public EChartsRadar()
      Constructs a new EChartsRadar with an empty indicator list.
  • Method Details

    • setCenter

      public void setCenter(String x, String y)
      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

      public void setRadius(Number radius)
      Sets the radius of the radar chart as a single value.
      Parameters:
      radius - the radius value
    • setRadius

      public void setRadius(Number innerRadius, Number outerRadius)
      Sets the radius of the radar chart as inner and outer radius.
      Parameters:
      innerRadius - the inner radius value
      outerRadius - the outer radius value
    • setStartAngle

      public void setStartAngle(Number startAngle)
      Sets the starting angle of the radar chart.
      Parameters:
      startAngle - the start angle in degrees
    • setShape

      public void setShape(String shape)
      Sets the shape of the radar chart (polygon or circle).
      Parameters:
      shape - the shape type
    • setSplitNumber

      public void setSplitNumber(Integer splitNumber)
      Sets the number of split sections on the radar.
      Parameters:
      splitNumber - the number of splits
    • setAxisName

      public void setAxisName(EChartsAxisName axisName)
      Sets the axis name configuration.
      Parameters:
      axisName - the axis name configuration
    • setAxisLine

      public void setAxisLine(EChartsAxisLine axisLine)
      Sets the axis line configuration.
      Parameters:
      axisLine - the axis line configuration
    • setAxisTick

      public void setAxisTick(EChartsAxisTick axisTick)
      Sets the axis tick configuration.
      Parameters:
      axisTick - the axis tick configuration
    • setAxisLabel

      public void setAxisLabel(EChartsAxisLabel axisLabel)
      Sets the axis label configuration.
      Parameters:
      axisLabel - the axis label configuration
    • setSplitLine

      public void setSplitLine(EChartsSplitLine splitLine)
      Sets the split line configuration.
      Parameters:
      splitLine - the split line configuration
    • setSplitArea

      public void setSplitArea(EChartsSplitArea splitArea)
      Sets the split area configuration.
      Parameters:
      splitArea - the split area configuration
    • setIndicator

      public void setIndicator(List<EChartsRadar.Indicator> indicator)
      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

      public Number getRadius()
      Gets the radius value.
      Returns:
      the radius value
    • getStartAngle

      public Number getStartAngle()
      Gets the start angle.
      Returns:
      the start angle in degrees
    • getShape

      public String getShape()
      Gets the shape type.
      Returns:
      the shape type
    • getSplitNumber

      public Integer getSplitNumber()
      Gets the split number.
      Returns:
      the number of splits
    • getAxisName

      public EChartsAxisName getAxisName()
      Gets the axis name configuration.
      Returns:
      the axis name configuration
    • getAxisLine

      public EChartsAxisLine getAxisLine()
      Gets the axis line configuration.
      Returns:
      the axis line configuration
    • getAxisTick

      public EChartsAxisTick getAxisTick()
      Gets the axis tick configuration.
      Returns:
      the axis tick configuration
    • getAxisLabel

      public EChartsAxisLabel getAxisLabel()
      Gets the axis label configuration.
      Returns:
      the axis label configuration
    • getSplitLine

      public EChartsSplitLine getSplitLine()
      Gets the split line configuration.
      Returns:
      the split line configuration
    • getSplitArea

      public EChartsSplitArea getSplitArea()
      Gets the split area configuration.
      Returns:
      the split area configuration
    • getIndicator

      public List<EChartsRadar.Indicator> getIndicator()
      Gets the list of indicators.
      Returns:
      the list of indicators
    • addIndicator

      public void addIndicator(String name, Number max)
      Adds an indicator with name and maximum value.
      Parameters:
      name - the indicator name
      max - the maximum value
    • addIndicator

      public void addIndicator(String name, Number min, Number max)
      Adds an indicator with name, minimum, and maximum values.
      Parameters:
      name - the indicator name
      min - the minimum value
      max - the maximum value
    • initFromJson

      public void initFromJson(com.oorian.json.JsonValue json)
      Specified by:
      initFromJson in interface com.oorian.json.Jsonable
    • toJsonValue

      public com.oorian.json.JsonValue toJsonValue()
      Specified by:
      toJsonValue in interface com.oorian.json.Jsonable
    • toJsonString

      public String toJsonString()
      Specified by:
      toJsonString in interface com.oorian.json.Jsonable