Package com.oorian.echarts.options
Class EChartsCandlestickSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsCandlestickSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a candlestick series configuration for ECharts candlestick/OHLC charts.
Extends EChartsSeries to provide candlestick-specific options such as bar dimensions, layout, and OHLC data formatting.
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsCandlestickSeries with type set to "candlestick". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a candlestick data point with OHLC values.voidAdds a named candlestick data point with OHLC values.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the maximum bar width.Gets the minimum bar width.Gets the bar width.Gets the emphasis configuration.Gets the hover animation setting.Gets the item style configuration.getLabel()Gets the label configuration.Gets the layout direction.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.voidsetBarMaxWidth(Integer barMaxWidth) Sets the maximum width of the candlestick bars.voidsetBarMinWidth(Integer barMinWidth) Sets the minimum width of the candlestick bars.voidsetBarWidth(Integer barWidth) Sets the width of the candlestick bars.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted elements.voidsetHoverAnimation(String hoverAnimation) Sets the hover animation behavior.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration.voidsetLabel(EChartsLabel label) Sets the label configuration.voidSets the layout direction (horizontal or vertical).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
-
EChartsCandlestickSeries
public EChartsCandlestickSeries()Constructs a new EChartsCandlestickSeries with type set to "candlestick".
-
-
Method Details
-
addData
Adds a candlestick data point with OHLC values.- Parameters:
open- opening priceclose- closing pricelow- lowest pricehigh- highest price
-
addData
Adds a named candlestick data point with OHLC values.- Parameters:
name- name for this data point (typically date)open- opening priceclose- closing pricelow- lowest pricehigh- highest price
-
setHoverAnimation
Sets the hover animation behavior.- Parameters:
hoverAnimation- the hover animation setting
-
setLayout
Sets the layout direction (horizontal or vertical).- Parameters:
layout- the layout direction
-
setBarWidth
Sets the width of the candlestick bars.- Parameters:
barWidth- the bar width
-
setBarMinWidth
Sets the minimum width of the candlestick bars.- Parameters:
barMinWidth- the minimum bar width
-
setBarMaxWidth
Sets the maximum width of the candlestick bars.- Parameters:
barMaxWidth- the maximum bar width
-
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.- 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
-
getHoverAnimation
Gets the hover animation setting.- Returns:
- the hover animation setting
-
getLayout
Gets the layout direction.- Returns:
- the layout direction
-
getBarWidth
Gets the bar width.- Returns:
- the bar width
-
getBarMinWidth
Gets the minimum bar width.- Returns:
- the minimum bar width
-
getBarMaxWidth
Gets the maximum bar width.- Returns:
- the maximum bar width
-
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
-