Class EChartsLevels

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

public class EChartsLevels extends Object implements com.oorian.json.Jsonable
Represents the levels configuration for ECharts hierarchical series such as sunburst and treemap. Each level can have its own styling and label configuration.
Author:
Oorian
  • Constructor Details

    • EChartsLevels

      public EChartsLevels()
      Default constructor.
  • Method Details

    • setLevels

      public void setLevels(List<EChartsLevels.Level> levels)
      Sets the list of level configurations.
      Parameters:
      levels - the list of level configurations
    • getLevels

      public List<EChartsLevels.Level> getLevels()
      Gets the list of level configurations.
      Returns:
      the list of level configurations
    • addLevel

      public void addLevel(EChartsLevels.Level level)
      Adds a level configuration to the list.
      Parameters:
      level - the level configuration to add
    • 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