Class EChartsSunburstData

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

public class EChartsSunburstData extends Object implements com.oorian.json.Jsonable
Represents a data node for sunburst charts with hierarchical structure. Implements Jsonable to support JSON serialization and deserialization for ECharts.
Author:
Oorian
  • Constructor Details

    • EChartsSunburstData

      public EChartsSunburstData()
      Constructs an empty EChartsSunburstData instance.
    • EChartsSunburstData

      public EChartsSunburstData(String name, Number value)
      Constructs a EChartsSunburstData with name and value.
      Parameters:
      name - the name of this data node
      value - the value of this node
    • EChartsSunburstData

      public EChartsSunburstData(String name, Number value, List<EChartsSunburstData> children)
      Constructs a EChartsSunburstData with name, value, and children.
      Parameters:
      name - the name of this data node
      value - the value of this node
      children - the list of child nodes
  • Method Details

    • setName

      public void setName(String name)
      Sets the name of this data node.
      Parameters:
      name - the name
    • setValue

      public void setValue(Number value)
      Sets the value of this data node.
      Parameters:
      value - the value
    • setChildren

      public void setChildren(List<EChartsSunburstData> children)
      Sets the children of this data node.
      Parameters:
      children - the list of child nodes
    • setItemStyle

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

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

      public void setEmphasis(EChartsEmphasis emphasis)
      Sets the emphasis configuration.
      Parameters:
      emphasis - the emphasis configuration
    • getName

      public String getName()
      Gets the name of this data node.
      Returns:
      the name
    • getValue

      public Number getValue()
      Gets the value of this data node.
      Returns:
      the value
    • getChildren

      public List<EChartsSunburstData> getChildren()
      Gets the children of this data node.
      Returns:
      the list of child nodes
    • getItemStyle

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

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

      public EChartsEmphasis getEmphasis()
      Gets the emphasis configuration.
      Returns:
      the emphasis configuration
    • 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