Class EChartsScatterSeries

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

public class EChartsScatterSeries extends EChartsSeries
Represents a scatter series configuration for ECharts scatter plots. Extends EChartsSeries to provide scatter-specific options such as symbols, large data mode, and styling.
Author:
Oorian
  • Constructor Details

    • EChartsScatterSeries

      public EChartsScatterSeries()
      Constructs a new EChartsScatterSeries with type set to "scatter".
  • Method Details

    • addData

      public void addData(Number x, Number y)
      Adds a coordinate pair for the scatter plot.
      Parameters:
      x - the x coordinate
      y - the y coordinate
    • 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
    • setSymbol

      public void setSymbol(String symbol)
      Sets the symbol type for data points.
      Parameters:
      symbol - the symbol type (circle, rect, triangle, etc.)
    • setSymbolSize

      public void setSymbolSize(Number symbolSize)
      Sets the size of the data point symbols.
      Parameters:
      symbolSize - the symbol size
    • setSymbolRotate

      public void setSymbolRotate(Number symbolRotate)
      Sets the rotation angle of symbols.
      Parameters:
      symbolRotate - the rotation angle in degrees
    • setSymbolKeepAspect

      public void setSymbolKeepAspect(Boolean symbolKeepAspect)
      Sets whether to keep the aspect ratio of symbols.
      Parameters:
      symbolKeepAspect - true to keep aspect ratio
    • 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
    • setItemStyle

      public void setItemStyle(EChartsItemStyle itemStyle)
      Sets the item style configuration for scatter points.
      Parameters:
      itemStyle - the item style configuration
    • setEmphasis

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

      public void setLabel(EChartsLabel label)
      Sets the label configuration for data labels.
      Parameters:
      label - the label configuration
    • 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
    • getSymbol

      public String getSymbol()
      Gets the symbol type.
      Returns:
      the symbol type
    • getSymbolSize

      public Number getSymbolSize()
      Gets the symbol size.
      Returns:
      the symbol size
    • getSymbolRotate

      public Number getSymbolRotate()
      Gets the symbol rotation angle.
      Returns:
      the rotation angle in degrees
    • getSymbolKeepAspect

      public Boolean getSymbolKeepAspect()
      Gets the symbol keep aspect ratio setting.
      Returns:
      true if aspect ratio is preserved
    • 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
    • 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