Package com.oorian.echarts.options
Class EChartsSunburstSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsSunburstSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
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
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsSunburstSeries with type set to "sunburst". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds simple leaf data for the sunburst chart.voidaddData(String name, Number value, List<EChartsSunburstData> children) Adds hierarchical data for the sunburst chart.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the animation setting.Gets the animation delay.Gets the animation delay for updates.Gets the animation duration.Gets the animation duration for updates.Gets the animation easing function.Gets the animation easing function for updates.Gets the animation threshold.com.oorian.json.JsonArrayGets the center position.Gets the clockwise setting.Gets the emphasis configuration.Gets the item style configuration.getLabel()Gets the label configuration.Gets the levels configuration.Gets the minimum angle.Gets the node click behavior.Gets the radius value.Gets the render label for zero data setting.Gets the start angle.Gets the still show zero sum setting.protected voidinitSpecificFromJson(com.oorian.json.JsonObject obj) Initializes series-specific properties from a JSON object.voidsetAnimation(Boolean animation) Sets whether animation is enabled.voidsetAnimationDelay(Number animationDelay) Sets the animation delay.voidsetAnimationDelayUpdate(Number animationDelayUpdate) Sets the animation delay for updates.voidsetAnimationDuration(Number animationDuration) Sets the animation duration.voidsetAnimationDurationUpdate(Number animationDurationUpdate) Sets the animation duration for updates.voidsetAnimationEasing(String animationEasing) Sets the animation easing function.voidsetAnimationEasingUpdate(String animationEasingUpdate) Sets the animation easing function for updates.voidsetAnimationThreshold(Number animationThreshold) Sets the threshold for disabling animation.voidSets the center position of the sunburst chart.voidsetClockwise(Number clockwise) Sets whether the sunburst chart is drawn clockwise.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted elements.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration.voidsetLabel(EChartsLabel label) Sets the label configuration.voidsetLevels(EChartsLevels levels) Sets the levels configuration for different depth levels.voidsetMinAngle(Number minAngle) Sets the minimum angle for a sunburst sector.voidsetNodeClick(String nodeClick) Sets the node click behavior.voidSets the radius of the sunburst chart as a single value.voidSets the radius of the sunburst chart as inner and outer radius.voidsetRenderLabelForZeroData(String renderLabelForZeroData) Sets whether to render labels for zero data nodes.voidsetStartAngle(Number startAngle) Sets the starting angle of the sunburst chart.voidsetStillShowZeroSum(Boolean stillShowZeroSum) Sets whether to show the chart when sum of values is zero.Methods inherited from class com.oorian.echarts.options.EChartsSeries
addData, getData, getName, getType, initFromJson, parseDataArray, setData, setName, setType, toJsonString, toJsonValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oorian.json.Jsonable
initFromJson, initFromJson
-
Constructor Details
-
EChartsSunburstSeries
public EChartsSunburstSeries()Constructs a new EChartsSunburstSeries with type set to "sunburst".
-
-
Method Details
-
addData
Adds hierarchical data for the sunburst chart.- Parameters:
name- the name of this data nodevalue- the value of this nodechildren- list of child nodes (can be null for leaf nodes)
-
addData
Adds simple leaf data for the sunburst chart.- Parameters:
name- the name of this data nodevalue- the value of this node
-
setCenter
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
Sets the radius of the sunburst chart as a single value.- Parameters:
radius- the radius value
-
setRadius
Sets the radius of the sunburst chart as inner and outer radius.- Parameters:
innerRadius- the inner radius valueouterRadius- the outer radius value
-
setClockwise
Sets whether the sunburst chart is drawn clockwise.- Parameters:
clockwise- the clockwise value (typically 1 or -1)
-
setStartAngle
Sets the starting angle of the sunburst chart.- Parameters:
startAngle- the start angle in degrees
-
setMinAngle
Sets the minimum angle for a sunburst sector.- Parameters:
minAngle- the minimum angle in degrees
-
setStillShowZeroSum
Sets whether to show the chart when sum of values is zero.- Parameters:
stillShowZeroSum- true to still show the chart
-
setNodeClick
Sets the node click behavior.- Parameters:
nodeClick- the node click action (rootToNode, link, etc.)
-
setRenderLabelForZeroData
Sets whether to render labels for zero data nodes.- Parameters:
renderLabelForZeroData- the render label setting
-
setItemStyle
Sets the item style configuration.- Parameters:
itemStyle- the item style configuration
-
setEmphasis
Sets the emphasis configuration for highlighted elements.- Parameters:
emphasis- the emphasis configuration
-
setLabel
Sets the label configuration.- Parameters:
label- the label configuration
-
setLevels
Sets the levels configuration for different depth levels.- Parameters:
levels- the levels configuration
-
setAnimation
Sets whether animation is enabled.- Parameters:
animation- true to enable animation
-
setAnimationThreshold
Sets the threshold for disabling animation.- Parameters:
animationThreshold- the threshold value
-
setAnimationDuration
Sets the animation duration.- Parameters:
animationDuration- the duration in milliseconds
-
setAnimationEasing
Sets the animation easing function.- Parameters:
animationEasing- the easing function name
-
setAnimationDelay
Sets the animation delay.- Parameters:
animationDelay- the delay in milliseconds
-
setAnimationDurationUpdate
Sets the animation duration for updates.- Parameters:
animationDurationUpdate- the update duration in milliseconds
-
setAnimationEasingUpdate
Sets the animation easing function for updates.- Parameters:
animationEasingUpdate- the update easing function name
-
setAnimationDelayUpdate
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
Gets the radius value.- Returns:
- the radius value
-
getClockwise
Gets the clockwise setting.- Returns:
- the clockwise value
-
getStartAngle
Gets the start angle.- Returns:
- the start angle in degrees
-
getMinAngle
Gets the minimum angle.- Returns:
- the minimum angle in degrees
-
getStillShowZeroSum
Gets the still show zero sum setting.- Returns:
- true if chart is shown when sum is zero
-
getNodeClick
Gets the node click behavior.- Returns:
- the node click action
-
getRenderLabelForZeroData
Gets the render label for zero data setting.- Returns:
- the render label setting
-
getItemStyle
Gets the item style configuration.- Returns:
- the item style configuration
-
getEmphasis
Gets the emphasis configuration.- Returns:
- the emphasis configuration
-
getLabel
Gets the label configuration.- Returns:
- the label configuration
-
getLevels
Gets the levels configuration.- Returns:
- the levels configuration
-
getAnimation
Gets the animation setting.- Returns:
- true if animation is enabled
-
getAnimationThreshold
Gets the animation threshold.- Returns:
- the threshold value
-
getAnimationDuration
Gets the animation duration.- Returns:
- the duration in milliseconds
-
getAnimationEasing
Gets the animation easing function.- Returns:
- the easing function name
-
getAnimationDelay
Gets the animation delay.- Returns:
- the delay in milliseconds
-
getAnimationDurationUpdate
Gets the animation duration for updates.- Returns:
- the update duration in milliseconds
-
getAnimationEasingUpdate
Gets the animation easing function for updates.- Returns:
- the update easing function name
-
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:EChartsSeriesInitializes series-specific properties from a JSON object.Subclasses must implement this method to handle their specific properties.
- Specified by:
initSpecificFromJsonin classEChartsSeries- Parameters:
obj- the JSON object containing series properties
-
addSpecificToJson
protected void addSpecificToJson(com.oorian.json.JsonObject obj) Description copied from class:EChartsSeriesAdds series-specific properties to a JSON object.Subclasses must implement this method to serialize their specific properties.
- Specified by:
addSpecificToJsonin classEChartsSeries- Parameters:
obj- the JSON object to add properties to
-