Package com.oorian.echarts.options
Class EChartsFunnelSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsFunnelSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a funnel series configuration for ECharts funnel charts.
Extends EChartsSeries to provide funnel-specific options such as orientation, gap, sorting, and sizing.
Funnel charts are useful for displaying:
- Sales/conversion funnels
- Process flow stages
- Sequential data filtering
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsFunnelSeries with type set to "funnel". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a funnel data point with name and value.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the bottom position.com.oorian.json.JsonArrayGets the center position.Gets the emphasis configuration.Gets the funnel alignment.getGap()Gets the gap between segments.Gets the height.Gets the item style configuration.getLabel()Gets the label configuration.Gets the label line configuration.getLeft()Gets the left position.getMax()Gets the maximum value.Gets the maximum size.getMin()Gets the minimum value.Gets the minimum size.Gets the orientation.getRight()Gets the right position.getSort()Gets the sort order.getTop()Gets the top position.getWidth()Gets the width.protected voidinitSpecificFromJson(com.oorian.json.JsonObject obj) Initializes series-specific properties from a JSON object.voidSets the bottom position of the funnel.voidSets the center position of the funnel.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted elements.voidsetFunnelAlign(String funnelAlign) Sets the alignment of funnel segments.voidSets the gap between funnel segments.voidSets the height of the funnel.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration.voidsetLabel(EChartsLabel label) Sets the label configuration.voidsetLabelLine(EChartsLabelLine labelLine) Sets the label line configuration.voidSets the left position of the funnel.voidSets the maximum value of the funnel.voidsetMaxSize(String maxSize) Sets the maximum size of the funnel (at the maximum data value end).voidSets the minimum value of the funnel.voidsetMinSize(String minSize) Sets the minimum size of the funnel (at the minimum data value end).voidSets the orientation of the funnel.voidSets the right position of the funnel.voidSets the sort order of the funnel.voidSets the top position of the funnel.voidSets the width of the funnel.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
-
EChartsFunnelSeries
public EChartsFunnelSeries()Constructs a new EChartsFunnelSeries with type set to "funnel".
-
-
Method Details
-
addData
Adds a funnel data point with name and value.- Parameters:
name- the name/label for this data pointvalue- the numeric value
-
setMin
Sets the minimum value of the funnel.- Parameters:
min- the minimum value
-
setMax
Sets the maximum value of the funnel.- Parameters:
max- the maximum value
-
setMinSize
Sets the minimum size of the funnel (at the minimum data value end).- Parameters:
minSize- the minimum size (can be percentage or pixel value)
-
setMaxSize
Sets the maximum size of the funnel (at the maximum data value end).- Parameters:
maxSize- the maximum size (can be percentage or pixel value)
-
setOrient
Sets the orientation of the funnel.- Parameters:
orient- the orientation ('vertical' or 'horizontal')
-
setSort
Sets the sort order of the funnel.- Parameters:
sort- the sort order ('ascending', 'descending', or 'none')
-
setGap
Sets the gap between funnel segments.- Parameters:
gap- the gap value in pixels
-
setFunnelAlign
Sets the alignment of funnel segments.- Parameters:
funnelAlign- the alignment ('center', 'left', or 'right')
-
setCenter
Sets the center position of the funnel.- Parameters:
x- the x coordinate (can be percentage or pixel value)y- the y coordinate (can be percentage or pixel value)
-
setWidth
Sets the width of the funnel.- Parameters:
width- the width (can be percentage or pixel value)
-
setHeight
Sets the height of the funnel.- Parameters:
height- the height (can be percentage or pixel value)
-
setLeft
Sets the left position of the funnel.- Parameters:
left- the left position
-
setRight
Sets the right position of the funnel.- Parameters:
right- the right position
-
setTop
Sets the top position of the funnel.- Parameters:
top- the top position
-
setBottom
Sets the bottom position of the funnel.- Parameters:
bottom- the bottom position
-
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
-
setLabelLine
Sets the label line configuration.- Parameters:
labelLine- the label line configuration
-
getMin
Gets the minimum value.- Returns:
- the minimum value
-
getMax
Gets the maximum value.- Returns:
- the maximum value
-
getMinSize
Gets the minimum size.- Returns:
- the minimum size
-
getMaxSize
Gets the maximum size.- Returns:
- the maximum size
-
getOrient
Gets the orientation.- Returns:
- the orientation
-
getSort
Gets the sort order.- Returns:
- the sort order
-
getGap
Gets the gap between segments.- Returns:
- the gap value
-
getFunnelAlign
Gets the funnel alignment.- Returns:
- the alignment
-
getCenter
public com.oorian.json.JsonArray getCenter()Gets the center position.- Returns:
- the center position array
-
getWidth
Gets the width.- Returns:
- the width
-
getHeight
Gets the height.- Returns:
- the height
-
getLeft
Gets the left position.- Returns:
- the left position
-
getRight
Gets the right position.- Returns:
- the right position
-
getTop
Gets the top position.- Returns:
- the top position
-
getBottom
Gets the bottom position.- Returns:
- the bottom position
-
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
-
getLabelLine
Gets the label line configuration.- Returns:
- the label line configuration
-
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
-