Class EChartsSunburstSeries

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

public class EChartsSunburstSeries extends EChartsSeries
Represents a sunburst series configuration for ECharts sunburst charts. Extends EChartsSeries to provide sunburst-specific options such as hierarchical data, radius, center, levels, and animation settings.
Author:
Oorian
  • Constructor Details

    • EChartsSunburstSeries

      public EChartsSunburstSeries()
      Constructs a new EChartsSunburstSeries with type set to "sunburst".
  • Method Details

    • addData

      public void addData(String name, Number value, List<EChartsSunburstData> children)
      Adds hierarchical data for the sunburst chart.
      Parameters:
      name - the name of this data node
      value - the value of this node
      children - list of child nodes (can be null for leaf nodes)
    • addData

      public void addData(String name, Number value)
      Adds simple leaf data for the sunburst chart.
      Parameters:
      name - the name of this data node
      value - the value of this node
    • setCenter

      public void setCenter(String x, String y)
      Sets the center position of the sunburst 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 sunburst chart as a single value.
      Parameters:
      radius - the radius value
    • setRadius

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

      public void setClockwise(Number clockwise)
      Sets whether the sunburst chart is drawn clockwise.
      Parameters:
      clockwise - the clockwise value (typically 1 or -1)
    • setStartAngle

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

      public void setMinAngle(Number minAngle)
      Sets the minimum angle for a sunburst sector.
      Parameters:
      minAngle - the minimum angle in degrees
    • setStillShowZeroSum

      public void setStillShowZeroSum(Boolean stillShowZeroSum)
      Sets whether to show the chart when sum of values is zero.
      Parameters:
      stillShowZeroSum - true to still show the chart
    • setNodeClick

      public void setNodeClick(String nodeClick)
      Sets the node click behavior.
      Parameters:
      nodeClick - the node click action (rootToNode, link, etc.)
    • setRenderLabelForZeroData

      public void setRenderLabelForZeroData(String renderLabelForZeroData)
      Sets whether to render labels for zero data nodes.
      Parameters:
      renderLabelForZeroData - the render label setting
    • 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
    • setLabel

      public void setLabel(EChartsLabel label)
      Sets the label configuration.
      Parameters:
      label - the label configuration
    • setLevels

      public void setLevels(EChartsLevels levels)
      Sets the levels configuration for different depth levels.
      Parameters:
      levels - the levels configuration
    • setAnimation

      public void setAnimation(Boolean animation)
      Sets whether animation is enabled.
      Parameters:
      animation - true to enable animation
    • setAnimationThreshold

      public void setAnimationThreshold(Number animationThreshold)
      Sets the threshold for disabling animation.
      Parameters:
      animationThreshold - the threshold value
    • setAnimationDuration

      public void setAnimationDuration(Number animationDuration)
      Sets the animation duration.
      Parameters:
      animationDuration - the duration in milliseconds
    • setAnimationEasing

      public void setAnimationEasing(String animationEasing)
      Sets the animation easing function.
      Parameters:
      animationEasing - the easing function name
    • setAnimationDelay

      public void setAnimationDelay(Number animationDelay)
      Sets the animation delay.
      Parameters:
      animationDelay - the delay in milliseconds
    • setAnimationDurationUpdate

      public void setAnimationDurationUpdate(Number animationDurationUpdate)
      Sets the animation duration for updates.
      Parameters:
      animationDurationUpdate - the update duration in milliseconds
    • setAnimationEasingUpdate

      public void setAnimationEasingUpdate(String animationEasingUpdate)
      Sets the animation easing function for updates.
      Parameters:
      animationEasingUpdate - the update easing function name
    • setAnimationDelayUpdate

      public void setAnimationDelayUpdate(Number animationDelayUpdate)
      Sets the animation delay for updates.
      Parameters:
      animationDelayUpdate - the update delay in milliseconds
    • 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
    • getClockwise

      public Number getClockwise()
      Gets the clockwise setting.
      Returns:
      the clockwise value
    • getStartAngle

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

      public Number getMinAngle()
      Gets the minimum angle.
      Returns:
      the minimum angle in degrees
    • getStillShowZeroSum

      public Boolean getStillShowZeroSum()
      Gets the still show zero sum setting.
      Returns:
      true if chart is shown when sum is zero
    • getNodeClick

      public String getNodeClick()
      Gets the node click behavior.
      Returns:
      the node click action
    • getRenderLabelForZeroData

      public String getRenderLabelForZeroData()
      Gets the render label for zero data setting.
      Returns:
      the render label setting
    • 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
    • getLabel

      public EChartsLabel getLabel()
      Gets the label configuration.
      Returns:
      the label configuration
    • getLevels

      public EChartsLevels getLevels()
      Gets the levels configuration.
      Returns:
      the levels configuration
    • getAnimation

      public Boolean getAnimation()
      Gets the animation setting.
      Returns:
      true if animation is enabled
    • getAnimationThreshold

      public Number getAnimationThreshold()
      Gets the animation threshold.
      Returns:
      the threshold value
    • getAnimationDuration

      public Number getAnimationDuration()
      Gets the animation duration.
      Returns:
      the duration in milliseconds
    • getAnimationEasing

      public String getAnimationEasing()
      Gets the animation easing function.
      Returns:
      the easing function name
    • getAnimationDelay

      public Number getAnimationDelay()
      Gets the animation delay.
      Returns:
      the delay in milliseconds
    • getAnimationDurationUpdate

      public Number getAnimationDurationUpdate()
      Gets the animation duration for updates.
      Returns:
      the update duration in milliseconds
    • getAnimationEasingUpdate

      public String getAnimationEasingUpdate()
      Gets the animation easing function for updates.
      Returns:
      the update easing function name
    • getAnimationDelayUpdate

      public Number getAnimationDelayUpdate()
      Gets the animation delay for updates.
      Returns:
      the update delay in milliseconds
    • 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