Package com.oorian.echarts.options
Class EChartsBarSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsBarSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a bar series configuration for ECharts bar charts.
Extends EChartsSeries to provide bar-specific options such as stack grouping, bar dimensions, and styling.
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsBarSeries with type set to "bar". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the bar category gap.Gets the bar gap.Gets the maximum bar width.Gets the minimum bar width.Gets the bar width.Gets the emphasis configuration.Gets the item style configuration.getLabel()Gets the label configuration.getLarge()Gets the large data mode setting.Gets the large threshold value.getStack()Gets the stack group name.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.voidsetBarCategoryGap(Number barCategoryGap) Sets the gap between bar categories.voidSets the gap between bars in the same category.voidsetBarMaxWidth(Number barMaxWidth) Sets the maximum width of the bars.voidsetBarMinWidth(Number barMinWidth) Sets the minimum width of the bars.voidsetBarWidth(Number barWidth) Sets the width of the bars.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted bars.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration for bar appearance.voidsetLabel(EChartsLabel label) Sets the label configuration for bar labels.voidSets whether to use large data mode optimization.voidsetLargeThreshold(Integer largeThreshold) Sets the threshold for enabling large data mode.voidSets the stack group name for stacked bar charts.voidsetXAxisIndex(Integer xAxisIndex) Sets the index of the x-axis to use for this series.voidsetYAxisIndex(Integer yAxisIndex) Sets the index of the y-axis to use 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
-
EChartsBarSeries
public EChartsBarSeries()Constructs a new EChartsBarSeries with type set to "bar".
-
-
Method Details
-
setStack
Sets the stack group name for stacked bar charts.- Parameters:
stack- the stack group identifier
-
setBarWidth
Sets the width of the bars.- Parameters:
barWidth- the bar width value
-
setBarMaxWidth
Sets the maximum width of the bars.- Parameters:
barMaxWidth- the maximum bar width value
-
setBarMinWidth
Sets the minimum width of the bars.- Parameters:
barMinWidth- the minimum bar width value
-
setBarGap
Sets the gap between bars in the same category.- Parameters:
barGap- the bar gap value
-
setBarCategoryGap
Sets the gap between bar categories.- Parameters:
barCategoryGap- the category gap value
-
setLarge
Sets whether to use large data mode optimization.- Parameters:
large- true to enable large data mode
-
setLargeThreshold
Sets the threshold for enabling large data mode.- Parameters:
largeThreshold- the threshold value
-
setXAxisIndex
Sets the index of the x-axis to use for this series.- Parameters:
xAxisIndex- the x-axis index
-
setYAxisIndex
Sets the index of the y-axis to use for this series.- Parameters:
yAxisIndex- the y-axis index
-
setItemStyle
Sets the item style configuration for bar appearance.- Parameters:
itemStyle- the item style configuration
-
setEmphasis
Sets the emphasis configuration for highlighted bars.- Parameters:
emphasis- the emphasis configuration
-
setLabel
Sets the label configuration for bar labels.- Parameters:
label- the label configuration
-
getStack
Gets the stack group name.- Returns:
- the stack group identifier
-
getBarWidth
Gets the bar width.- Returns:
- the bar width value
-
getBarMaxWidth
Gets the maximum bar width.- Returns:
- the maximum bar width value
-
getBarMinWidth
Gets the minimum bar width.- Returns:
- the minimum bar width value
-
getBarGap
Gets the bar gap.- Returns:
- the bar gap value
-
getBarCategoryGap
Gets the bar category gap.- Returns:
- the category gap value
-
getLarge
Gets the large data mode setting.- Returns:
- true if large data mode is enabled
-
getLargeThreshold
Gets the large threshold value.- Returns:
- the threshold value
-
getXAxisIndex
Gets the x-axis index.- Returns:
- the x-axis index
-
getYAxisIndex
Gets the y-axis index.- Returns:
- the y-axis index
-
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
-
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
-