Class EChartsBarSeries

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

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

    • EChartsBarSeries

      public EChartsBarSeries()
      Constructs a new EChartsBarSeries with type set to "bar".
  • Method Details

    • setStack

      public void setStack(String stack)
      Sets the stack group name for stacked bar charts.
      Parameters:
      stack - the stack group identifier
    • setBarWidth

      public void setBarWidth(Number barWidth)
      Sets the width of the bars.
      Parameters:
      barWidth - the bar width value
    • setBarMaxWidth

      public void setBarMaxWidth(Number barMaxWidth)
      Sets the maximum width of the bars.
      Parameters:
      barMaxWidth - the maximum bar width value
    • setBarMinWidth

      public void setBarMinWidth(Number barMinWidth)
      Sets the minimum width of the bars.
      Parameters:
      barMinWidth - the minimum bar width value
    • setBarGap

      public void setBarGap(Number barGap)
      Sets the gap between bars in the same category.
      Parameters:
      barGap - the bar gap value
    • setBarCategoryGap

      public void setBarCategoryGap(Number barCategoryGap)
      Sets the gap between bar categories.
      Parameters:
      barCategoryGap - the category gap value
    • setLarge

      public void setLarge(Boolean large)
      Sets whether to use large data mode optimization.
      Parameters:
      large - true to enable large data mode
    • setLargeThreshold

      public void setLargeThreshold(Integer largeThreshold)
      Sets the threshold for enabling large data mode.
      Parameters:
      largeThreshold - the threshold value
    • 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 for bar appearance.
      Parameters:
      itemStyle - the item style configuration
    • setEmphasis

      public void setEmphasis(EChartsEmphasis emphasis)
      Sets the emphasis configuration for highlighted bars.
      Parameters:
      emphasis - the emphasis configuration
    • setLabel

      public void setLabel(EChartsLabel label)
      Sets the label configuration for bar labels.
      Parameters:
      label - the label configuration
    • getStack

      public String getStack()
      Gets the stack group name.
      Returns:
      the stack group identifier
    • getBarWidth

      public Number getBarWidth()
      Gets the bar width.
      Returns:
      the bar width value
    • getBarMaxWidth

      public Number getBarMaxWidth()
      Gets the maximum bar width.
      Returns:
      the maximum bar width value
    • getBarMinWidth

      public Number getBarMinWidth()
      Gets the minimum bar width.
      Returns:
      the minimum bar width value
    • getBarGap

      public Number getBarGap()
      Gets the bar gap.
      Returns:
      the bar gap value
    • getBarCategoryGap

      public Number getBarCategoryGap()
      Gets the bar category gap.
      Returns:
      the category gap value
    • getLarge

      public Boolean getLarge()
      Gets the large data mode setting.
      Returns:
      true if large data mode is enabled
    • getLargeThreshold

      public Integer getLargeThreshold()
      Gets the large threshold value.
      Returns:
      the threshold value
    • 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