Class EChartsBoxplotSeries

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

public class EChartsBoxplotSeries extends EChartsSeries
Represents a boxplot series configuration for ECharts boxplot charts. Extends EChartsSeries to provide boxplot-specific options for statistical data visualization.

Boxplot charts are useful for displaying:

  • Statistical distributions
  • Quartile ranges
  • Outlier detection
  • Data comparison across categories
Author:
Oorian
  • Constructor Details

    • EChartsBoxplotSeries

      public EChartsBoxplotSeries()
      Constructs a new EChartsBoxplotSeries with type set to "boxplot".
  • Method Details

    • addData

      public void addData(Number min, Number q1, Number median, Number q3, Number max)
      Adds boxplot data point with the five summary values. The data format is: [min, Q1, median, Q3, max]
      Parameters:
      min - the minimum value
      q1 - the first quartile (25th percentile)
      median - the median (50th percentile)
      q3 - the third quartile (75th percentile)
      max - the maximum value
    • addData

      public void addData(String name, Number min, Number q1, Number median, Number q3, Number max)
      Adds boxplot data point with name and the five summary values.
      Parameters:
      name - the data point name
      min - the minimum value
      q1 - the first quartile (25th percentile)
      median - the median (50th percentile)
      q3 - the third quartile (75th percentile)
      max - the maximum value
    • setXAxisIndex

      public void setXAxisIndex(Integer xAxisIndex)
      Sets the x-axis index for this series.
      Parameters:
      xAxisIndex - the x-axis index
    • setYAxisIndex

      public void setYAxisIndex(Integer yAxisIndex)
      Sets the y-axis index for this series.
      Parameters:
      yAxisIndex - the y-axis index
    • setCoordinateSystem

      public void setCoordinateSystem(String coordinateSystem)
      Sets the coordinate system for this series.
      Parameters:
      coordinateSystem - the coordinate system ('cartesian2d')
    • setLayout

      public void setLayout(String layout)
      Sets the layout orientation.
      Parameters:
      layout - the layout ('horizontal' or 'vertical')
    • setBoxWidth

      public void setBoxWidth(Number boxWidth)
      Sets the box width.
      Parameters:
      boxWidth - the box width (as an array [min, max] or single value)
    • 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
    • getXAxisIndex

      public Integer getXAxisIndex()
      Gets the x-axis index.
      Returns:
      the x-axis index
    • getYAxisIndex

      public Integer getYAxisIndex()
      Gets the y-axis index.
      Returns:
      the y-axis index
    • getCoordinateSystem

      public String getCoordinateSystem()
      Gets the coordinate system.
      Returns:
      the coordinate system
    • getLayout

      public String getLayout()
      Gets the layout.
      Returns:
      the layout
    • getBoxWidth

      public Number getBoxWidth()
      Gets the box width.
      Returns:
      the box width
    • 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
    • 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