Package com.oorian.echarts.options
Class EChartsBoxplotSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsBoxplotSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
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
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsBoxplotSeries with type set to "boxplot". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds boxplot data point with the five summary values.voidAdds boxplot data point with name and the five summary values.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the box width.Gets the coordinate system.Gets the emphasis configuration.Gets the item style configuration.Gets the layout.Gets the x-axis index.Gets the y-axis index.protected voidinitSpecificFromJson(com.oorian.json.JsonObject obj) Initializes series-specific properties from a JSON object.voidsetBoxWidth(Number boxWidth) Sets the box width.voidsetCoordinateSystem(String coordinateSystem) Sets the coordinate system for this series.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted elements.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration.voidSets the layout orientation.voidsetXAxisIndex(Integer xAxisIndex) Sets the x-axis index for this series.voidsetYAxisIndex(Integer yAxisIndex) Sets the y-axis index for this series.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
-
EChartsBoxplotSeries
public EChartsBoxplotSeries()Constructs a new EChartsBoxplotSeries with type set to "boxplot".
-
-
Method Details
-
addData
Adds boxplot data point with the five summary values. The data format is: [min, Q1, median, Q3, max]- Parameters:
min- the minimum valueq1- the first quartile (25th percentile)median- the median (50th percentile)q3- the third quartile (75th percentile)max- the maximum value
-
addData
Adds boxplot data point with name and the five summary values.- Parameters:
name- the data point namemin- the minimum valueq1- the first quartile (25th percentile)median- the median (50th percentile)q3- the third quartile (75th percentile)max- the maximum value
-
setXAxisIndex
Sets the x-axis index for this series.- Parameters:
xAxisIndex- the x-axis index
-
setYAxisIndex
Sets the y-axis index for this series.- Parameters:
yAxisIndex- the y-axis index
-
setCoordinateSystem
Sets the coordinate system for this series.- Parameters:
coordinateSystem- the coordinate system ('cartesian2d')
-
setLayout
Sets the layout orientation.- Parameters:
layout- the layout ('horizontal' or 'vertical')
-
setBoxWidth
Sets the box width.- Parameters:
boxWidth- the box width (as an array [min, max] or single value)
-
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
-
getXAxisIndex
Gets the x-axis index.- Returns:
- the x-axis index
-
getYAxisIndex
Gets the y-axis index.- Returns:
- the y-axis index
-
getCoordinateSystem
Gets the coordinate system.- Returns:
- the coordinate system
-
getLayout
Gets the layout.- Returns:
- the layout
-
getBoxWidth
Gets the box width.- Returns:
- the box width
-
getItemStyle
Gets the item style configuration.- Returns:
- the item style configuration
-
getEmphasis
Gets the emphasis configuration.- Returns:
- the emphasis 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
-