Class EChartsGaugeSeries

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

public class EChartsGaugeSeries extends EChartsSeries
Represents a gauge series configuration for ECharts gauge charts. Extends EChartsSeries to provide gauge-specific options such as min/max values, angles, axis components, and styling.
Author:
Oorian
  • Constructor Details

    • EChartsGaugeSeries

      public EChartsGaugeSeries()
      Constructs a new EChartsGaugeSeries with type set to "gauge".
  • Method Details

    • addData

      public void addData(String name, Number value)
      Adds a gauge data point with name and value.
      Parameters:
      name - the name/label for this gauge
      value - the numeric value
    • setMin

      public void setMin(Number min)
      Sets the minimum value of the gauge.
      Parameters:
      min - the minimum value
    • setMax

      public void setMax(Number max)
      Sets the maximum value of the gauge.
      Parameters:
      max - the maximum value
    • setStartAngle

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

      public void setEndAngle(Number endAngle)
      Sets the ending angle of the gauge.
      Parameters:
      endAngle - the end angle in degrees
    • setClockwise

      public void setClockwise(Boolean clockwise)
      Sets whether the gauge is drawn clockwise.
      Parameters:
      clockwise - true for clockwise direction
    • setSplitNumber

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

      public void setRadius(Number radius)
      Sets the radius of the gauge as a numeric value.
      Parameters:
      radius - the radius value in pixels
    • setRadius

      public void setRadius(String radius)
      Sets the radius of the gauge as a string (can be percentage like "70%").
      Parameters:
      radius - the radius value as string
    • setCenter

      public void setCenter(String x, String y)
      Sets the center position of the gauge.
      Parameters:
      x - the x coordinate (can be percentage or pixel value)
      y - the y coordinate (can be percentage or pixel value)
    • setAxisLine

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

      public void setSplitLine(EChartsSplitLine splitLine)
      Sets the split line configuration.
      Parameters:
      splitLine - the split 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
    • setPointer

      public void setPointer(EChartsPointer pointer)
      Sets the pointer configuration.
      Parameters:
      pointer - the pointer configuration
    • setItemStyle

      public void setItemStyle(EChartsItemStyle itemStyle)
      Sets the item style configuration.
      Parameters:
      itemStyle - the item style configuration
    • setEmphasis

      public void setEmphasis(EChartsEmphasis emphasis)
      Sets the emphasis configuration for highlighted elements.
      Parameters:
      emphasis - the emphasis configuration
    • setTitle

      public void setTitle(EChartsTitle title)
      Sets the title configuration for the gauge.
      Parameters:
      title - the title configuration
    • setDetail

      public void setDetail(EChartsDetail detail)
      Sets the detail configuration for displaying the gauge value.
      Parameters:
      detail - the detail configuration
    • getMin

      public Number getMin()
      Gets the minimum value.
      Returns:
      the minimum value
    • getMax

      public Number getMax()
      Gets the maximum value.
      Returns:
      the maximum value
    • getStartAngle

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

      public Number getEndAngle()
      Gets the end angle.
      Returns:
      the end angle in degrees
    • getClockwise

      public Boolean getClockwise()
      Gets the clockwise setting.
      Returns:
      true if clockwise direction is enabled
    • getSplitNumber

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

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

      public com.oorian.json.JsonArray getCenter()
      Gets the center position.
      Returns:
      the center position array
    • getAxisLine

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

      public EChartsSplitLine getSplitLine()
      Gets the split line configuration.
      Returns:
      the split 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
    • getPointer

      public EChartsPointer getPointer()
      Gets the pointer configuration.
      Returns:
      the pointer configuration
    • getItemStyle

      public EChartsItemStyle getItemStyle()
      Gets the item style configuration.
      Returns:
      the item style configuration
    • getEmphasis

      public EChartsEmphasis getEmphasis()
      Gets the emphasis configuration.
      Returns:
      the emphasis configuration
    • getTitle

      public EChartsTitle getTitle()
      Gets the title configuration.
      Returns:
      the title configuration
    • getDetail

      public EChartsDetail getDetail()
      Gets the detail configuration.
      Returns:
      the detail configuration
    • initSpecificFromJson

      protected void initSpecificFromJson(com.oorian.json.JsonObject obj)
      Description copied from class: EChartsSeries
      Initializes series-specific properties from a JSON object.

      Subclasses must implement this method to handle their specific properties.

      Specified by:
      initSpecificFromJson in class EChartsSeries
      Parameters:
      obj - the JSON object containing series properties
    • addSpecificToJson

      protected void addSpecificToJson(com.oorian.json.JsonObject obj)
      Description copied from class: EChartsSeries
      Adds series-specific properties to a JSON object.

      Subclasses must implement this method to serialize their specific properties.

      Specified by:
      addSpecificToJson in class EChartsSeries
      Parameters:
      obj - the JSON object to add properties to