Class EChartsLineSeries

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

public class EChartsLineSeries extends EChartsSeries
Represents a line series configuration for ECharts line charts. Extends EChartsSeries to provide line-specific options such as smoothing, stacking, symbols, and area styling.
Author:
Oorian
  • Constructor Details

    • EChartsLineSeries

      public EChartsLineSeries()
      Constructs a new EChartsLineSeries with type set to "line".
  • Method Details

    • setStack

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

      public void setSmooth(Boolean smooth)
      Sets whether to use smooth curves for the line.
      Parameters:
      smooth - true to enable smooth curves
    • setConnectNulls

      public void setConnectNulls(Boolean connectNulls)
      Sets whether to connect null/missing data points.
      Parameters:
      connectNulls - true to connect across null values
    • setClip

      public void setClip(Boolean clip)
      Sets whether to clip the line to the coordinate system bounds.
      Parameters:
      clip - true to clip the line
    • setStep

      public void setStep(String step)
      Sets the step line type (start, middle, end).
      Parameters:
      step - the step type
    • 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
    • setShowSymbol

      public void setShowSymbol(Boolean showSymbol)
      Sets whether to show symbols on data points.
      Parameters:
      showSymbol - true to show symbols
    • setShowAllSymbol

      public void setShowAllSymbol(Boolean showAllSymbol)
      Sets whether to show all symbols regardless of density.
      Parameters:
      showAllSymbol - true to show all symbols
    • setLineStyle

      public void setLineStyle(EChartsLineStyle lineStyle)
      Sets the line style configuration.
      Parameters:
      lineStyle - the line style configuration
    • setAreaStyle

      public void setAreaStyle(EChartsAreaStyle areaStyle)
      Sets the area style configuration for filled areas.
      Parameters:
      areaStyle - the area style configuration
    • setItemStyle

      public void setItemStyle(EChartsItemStyle itemStyle)
      Sets the item style configuration for data points.
      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 for data labels.
      Parameters:
      label - the label configuration
    • getStack

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

      public Boolean getSmooth()
      Gets the smooth curve setting.
      Returns:
      true if smooth curves are enabled
    • getConnectNulls

      public Boolean getConnectNulls()
      Gets the connect nulls setting.
      Returns:
      true if null values are connected
    • getClip

      public Boolean getClip()
      Gets the clip setting.
      Returns:
      true if clipping is enabled
    • getStep

      public String getStep()
      Gets the step line type.
      Returns:
      the step type
    • 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
    • getShowSymbol

      public Boolean getShowSymbol()
      Gets the show symbol setting.
      Returns:
      true if symbols are shown
    • getShowAllSymbol

      public Boolean getShowAllSymbol()
      Gets the show all symbol setting.
      Returns:
      true if all symbols are shown
    • getLineStyle

      public EChartsLineStyle getLineStyle()
      Gets the line style configuration.
      Returns:
      the line style configuration
    • getAreaStyle

      public EChartsAreaStyle getAreaStyle()
      Gets the area style configuration.
      Returns:
      the area style configuration
    • 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