Class EChartsCandlestickSeries

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

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

    • EChartsCandlestickSeries

      public EChartsCandlestickSeries()
      Constructs a new EChartsCandlestickSeries with type set to "candlestick".
  • Method Details

    • addData

      public void addData(Number open, Number close, Number low, Number high)
      Adds a candlestick data point with OHLC values.
      Parameters:
      open - opening price
      close - closing price
      low - lowest price
      high - highest price
    • addData

      public void addData(String name, Number open, Number close, Number low, Number high)
      Adds a named candlestick data point with OHLC values.
      Parameters:
      name - name for this data point (typically date)
      open - opening price
      close - closing price
      low - lowest price
      high - highest price
    • setHoverAnimation

      public void setHoverAnimation(String hoverAnimation)
      Sets the hover animation behavior.
      Parameters:
      hoverAnimation - the hover animation setting
    • setLayout

      public void setLayout(String layout)
      Sets the layout direction (horizontal or vertical).
      Parameters:
      layout - the layout direction
    • setBarWidth

      public void setBarWidth(Integer barWidth)
      Sets the width of the candlestick bars.
      Parameters:
      barWidth - the bar width
    • setBarMinWidth

      public void setBarMinWidth(Integer barMinWidth)
      Sets the minimum width of the candlestick bars.
      Parameters:
      barMinWidth - the minimum bar width
    • setBarMaxWidth

      public void setBarMaxWidth(Integer barMaxWidth)
      Sets the maximum width of the candlestick bars.
      Parameters:
      barMaxWidth - the maximum bar width
    • setXAxisIndex

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

      public void setYAxisIndex(Integer yAxisIndex)
      Sets the index of the y-axis to use for this series.
      Parameters:
      yAxisIndex - the y-axis index
    • 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
    • getHoverAnimation

      public String getHoverAnimation()
      Gets the hover animation setting.
      Returns:
      the hover animation setting
    • getLayout

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

      public Integer getBarWidth()
      Gets the bar width.
      Returns:
      the bar width
    • getBarMinWidth

      public Integer getBarMinWidth()
      Gets the minimum bar width.
      Returns:
      the minimum bar width
    • getBarMaxWidth

      public Integer getBarMaxWidth()
      Gets the maximum bar width.
      Returns:
      the maximum bar width
    • 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
    • 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
    • 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