Class EChartsFunnelSeries

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

public class EChartsFunnelSeries extends EChartsSeries
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
  • Constructor Details

    • EChartsFunnelSeries

      public EChartsFunnelSeries()
      Constructs a new EChartsFunnelSeries with type set to "funnel".
  • Method Details

    • addData

      public void addData(String name, Number value)
      Adds a funnel data point with name and value.
      Parameters:
      name - the name/label for this data point
      value - the numeric value
    • setMin

      public void setMin(Number min)
      Sets the minimum value of the funnel.
      Parameters:
      min - the minimum value
    • setMax

      public void setMax(Number max)
      Sets the maximum value of the funnel.
      Parameters:
      max - the maximum value
    • setMinSize

      public void setMinSize(String minSize)
      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

      public void setMaxSize(String maxSize)
      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

      public void setOrient(String orient)
      Sets the orientation of the funnel.
      Parameters:
      orient - the orientation ('vertical' or 'horizontal')
    • setSort

      public void setSort(String sort)
      Sets the sort order of the funnel.
      Parameters:
      sort - the sort order ('ascending', 'descending', or 'none')
    • setGap

      public void setGap(Number gap)
      Sets the gap between funnel segments.
      Parameters:
      gap - the gap value in pixels
    • setFunnelAlign

      public void setFunnelAlign(String funnelAlign)
      Sets the alignment of funnel segments.
      Parameters:
      funnelAlign - the alignment ('center', 'left', or 'right')
    • setCenter

      public void setCenter(String x, String y)
      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

      public void setWidth(String width)
      Sets the width of the funnel.
      Parameters:
      width - the width (can be percentage or pixel value)
    • setHeight

      public void setHeight(String height)
      Sets the height of the funnel.
      Parameters:
      height - the height (can be percentage or pixel value)
    • setLeft

      public void setLeft(String left)
      Sets the left position of the funnel.
      Parameters:
      left - the left position
    • setRight

      public void setRight(String right)
      Sets the right position of the funnel.
      Parameters:
      right - the right position
    • setTop

      public void setTop(String top)
      Sets the top position of the funnel.
      Parameters:
      top - the top position
    • setBottom

      public void setBottom(String bottom)
      Sets the bottom position of the funnel.
      Parameters:
      bottom - the bottom position
    • 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
    • setLabelLine

      public void setLabelLine(EChartsLabelLine labelLine)
      Sets the label line configuration.
      Parameters:
      labelLine - the label line configuration
    • getMin

      public Number getMin()
      Gets the minimum value.
      Returns:
      the minimum value
    • getMax

      public Number getMax()
      Gets the maximum value.
      Returns:
      the maximum value
    • getMinSize

      public String getMinSize()
      Gets the minimum size.
      Returns:
      the minimum size
    • getMaxSize

      public String getMaxSize()
      Gets the maximum size.
      Returns:
      the maximum size
    • getOrient

      public String getOrient()
      Gets the orientation.
      Returns:
      the orientation
    • getSort

      public String getSort()
      Gets the sort order.
      Returns:
      the sort order
    • getGap

      public Number getGap()
      Gets the gap between segments.
      Returns:
      the gap value
    • getFunnelAlign

      public String 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

      public String getWidth()
      Gets the width.
      Returns:
      the width
    • getHeight

      public String getHeight()
      Gets the height.
      Returns:
      the height
    • getLeft

      public String getLeft()
      Gets the left position.
      Returns:
      the left position
    • getRight

      public String getRight()
      Gets the right position.
      Returns:
      the right position
    • getTop

      public String getTop()
      Gets the top position.
      Returns:
      the top position
    • getBottom

      public String getBottom()
      Gets the bottom position.
      Returns:
      the bottom position
    • 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
    • getLabelLine

      public EChartsLabelLine getLabelLine()
      Gets the label line configuration.
      Returns:
      the label line configuration
    • 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