All Implemented Interfaces:
HasSymbols<ScatterSeries>, Serializable

public class ScatterSeries extends AbstractAxisAwareSeries<ScatterSeries> implements HasSymbols<ScatterSeries>
Scatter (bubble) chart. The scatter series in rectangular coordinate could be used to present the relation between X and Y. More detailed information is provided in the documentation.
See Also:
  • Field Details

  • Constructor Details

    • ScatterSeries

      public ScatterSeries()
  • Method Details

    • getCoordinateSystem

      public CoordinateSystem getCoordinateSystem()
    • setCoordinateSystem

      public void setCoordinateSystem(CoordinateSystem coordinateSystem)
    • getXAxisIndex

      public Integer getXAxisIndex()
    • setXAxisIndex

      public void setXAxisIndex(Integer xAxisIndex)
    • getYAxisIndex

      public Integer getYAxisIndex()
    • setYAxisIndex

      public void setYAxisIndex(Integer yAxisIndex)
    • getPolarIndex

      public Integer getPolarIndex()
    • setPolarIndex

      public void setPolarIndex(Integer polarIndex)
    • getGeoIndex

      public Integer getGeoIndex()
    • setGeoIndex

      public void setGeoIndex(Integer geoIndex)
    • getCalendarIndex

      public Integer getCalendarIndex()
    • setCalendarIndex

      public void setCalendarIndex(Integer calendarIndex)
    • getClip

      public Boolean getClip()
    • setClip

      public void setClip(Boolean clip)
    • getSymbol

      public HasSymbols.Symbol getSymbol()
      Specified by:
      getSymbol in interface HasSymbols<ScatterSeries>
      Returns:
      symbol
    • setSymbol

      public void setSymbol(HasSymbols.SymbolType symbolType)
      Description copied from interface: HasSymbols
      Sets predefined symbol type or replaces an existing one.
      Specified by:
      setSymbol in interface HasSymbols<ScatterSeries>
      Parameters:
      symbolType - symbol to set
    • setSymbol

      public void setSymbol(String icon)
      Description copied from interface: HasSymbols
      Sets a symbol or replaces an existing one.
      Possible values:
      • image://%url%, example: image://http://example.website/a/b.png
      • image://%dataURI%, example: image://data:image/gif;base64,...
      • path://%svgPathData%, example: path://M30.9,53.2c16...
      Specified by:
      setSymbol in interface HasSymbols<ScatterSeries>
      Parameters:
      icon - symbol to set
    • getSymbolSize

      public Integer getSymbolSize()
      Specified by:
      getSymbolSize in interface HasSymbols<ScatterSeries>
      Returns:
      symbol size
    • setSymbolSize

      public void setSymbolSize(Integer symbolSize)
      Description copied from interface: HasSymbols
      Sets a symbol size or replaces an existing one.
      Specified by:
      setSymbolSize in interface HasSymbols<ScatterSeries>
      Parameters:
      symbolSize - symbol size to set
    • setSymbolSizeFunction

      public void setSymbolSizeFunction(String symbolSizeFunction)
      Description copied from interface: HasSymbols
      Sets a callback function for symbol size as string or replaces an existing one.
      Specified by:
      setSymbolSizeFunction in interface HasSymbols<ScatterSeries>
      Parameters:
      symbolSizeFunction - formatter function as string
    • getSymbolSizeFunction

      public JsFunction getSymbolSizeFunction()
      Specified by:
      getSymbolSizeFunction in interface HasSymbols<ScatterSeries>
      Returns:
      callback function for symbol size
    • setSymbolSizeFunction

      public void setSymbolSizeFunction(JsFunction symbolSizeFunction)
      Description copied from interface: HasSymbols
      Sets a callback function for symbol size or replaces an existing one.
      Specified by:
      setSymbolSizeFunction in interface HasSymbols<ScatterSeries>
      Parameters:
      symbolSizeFunction - symbol size callback function
    • getSymbolRotate

      public Integer getSymbolRotate()
      Specified by:
      getSymbolRotate in interface HasSymbols<ScatterSeries>
      Returns:
      rotate degree of symbol
    • setSymbolRotate

      public void setSymbolRotate(Integer symbolRotate)
      Description copied from interface: HasSymbols
      Sets a rotate degree of symbol or replaces an existing one. The negative value represents clockwise.
      Specified by:
      setSymbolRotate in interface HasSymbols<ScatterSeries>
      Parameters:
      symbolRotate - rotate symbol to set
    • getSymbolKeepAspect

      public Boolean getSymbolKeepAspect()
      Specified by:
      getSymbolKeepAspect in interface HasSymbols<ScatterSeries>
      Returns:
      true if the aspect for symbols must be kept, false otherwise
    • setSymbolKeepAspect

      public void setSymbolKeepAspect(Boolean symbolKeepAspect)
      Description copied from interface: HasSymbols
      Sets the keeping of aspects for a symbol.
      Specified by:
      setSymbolKeepAspect in interface HasSymbols<ScatterSeries>
      Parameters:
      symbolKeepAspect - whether to keep aspect for symbols in the form of path://%svgPathData%
    • getSymbolOffset

      public String[] getSymbolOffset()
      Specified by:
      getSymbolOffset in interface HasSymbols<ScatterSeries>
      Returns:
      offset of symbol relative to original position
    • setSymbolOffset

      public void setSymbolOffset(String xOffset, String yOffset)
      Description copied from interface: HasSymbols
      Sets an offset of symbol relative to original position or replaces an existing one.
      Possible values:
      • Pixel values: hasSymbols.setSymbolOffset("10", "10");.
      • Percentage values: hasSymbols.setSymbolOffset("50%", "45%");.
      • Pixel and percentage values combination: hasSymbols.setSymbolOffset("5", "50%");.
      Specified by:
      setSymbolOffset in interface HasSymbols<ScatterSeries>
      Parameters:
      xOffset - horizontal offset
      yOffset - vertical offset
    • getCursor

      public String getCursor()
    • setCursor

      public void setCursor(String cursor)
    • getLarge

      public Boolean getLarge()
    • setLarge

      public void setLarge(Boolean large)
    • getLargeThreshold

      public Integer getLargeThreshold()
    • setLargeThreshold

      public void setLargeThreshold(Integer largeThreshold)
    • getLabelLine

      public ScatterSeries.LabelLine getLabelLine()
    • setLabelLine

      public void setLabelLine(ScatterSeries.LabelLine labelLine)
    • getItemStyle

      public ItemStyle getItemStyle()
    • setItemStyle

      public void setItemStyle(ItemStyle itemStyle)
    • getEmphasis

      public ScatterSeries.Emphasis getEmphasis()
    • setEmphasis

      public void setEmphasis(ScatterSeries.Emphasis emphasis)
    • getBlur

      public ScatterSeries.Blur getBlur()
    • setBlur

      public void setBlur(ScatterSeries.Blur blur)
    • getSelect

      public ScatterSeries.Select getSelect()
    • setSelect

      public void setSelect(ScatterSeries.Select select)
    • getProgressive

      public Integer getProgressive()
    • setProgressive

      public void setProgressive(Integer progressive)
    • getProgressiveThreshold

      public Integer getProgressiveThreshold()
    • setProgressiveThreshold

      public void setProgressiveThreshold(Integer progressiveThreshold)
    • getAnimation

      public Boolean getAnimation()
    • setAnimation

      public void setAnimation(Boolean animation)
    • getAnimationThreshold

      public Integer getAnimationThreshold()
    • setAnimationThreshold

      public void setAnimationThreshold(Integer animationThreshold)
    • getAnimationDurationUpdate

      public Integer getAnimationDurationUpdate()
    • setAnimationDurationUpdate

      public void setAnimationDurationUpdate(Integer animationDurationUpdate)
    • getAnimationEasingUpdate

      public String getAnimationEasingUpdate()
    • setAnimationEasingUpdate

      public void setAnimationEasingUpdate(String animationEasingUpdate)
    • getAnimationDelayUpdate

      public Integer getAnimationDelayUpdate()
    • setAnimationDelayUpdate

      public void setAnimationDelayUpdate(Integer animationDelayUpdate)
    • withCoordinateSystem

      public ScatterSeries withCoordinateSystem(CoordinateSystem coordinateSystem)
    • withXAxisIndex

      public ScatterSeries withXAxisIndex(Integer xAxisIndex)
    • withYAxisIndex

      public ScatterSeries withYAxisIndex(Integer yAxisIndex)
    • withPolarIndex

      public ScatterSeries withPolarIndex(Integer polarIndex)
    • withGeoIndex

      public ScatterSeries withGeoIndex(Integer geoIndex)
    • withCalendarIndex

      public ScatterSeries withCalendarIndex(Integer calendarIndex)
    • withClip

      public ScatterSeries withClip(Boolean clip)
    • withCursor

      public ScatterSeries withCursor(String cursor)
    • withLarge

      public ScatterSeries withLarge(Boolean large)
    • withLargeThreshold

      public ScatterSeries withLargeThreshold(Integer largeThreshold)
    • withLabelLine

      public ScatterSeries withLabelLine(ScatterSeries.LabelLine labelLine)
    • withItemStyle

      public ScatterSeries withItemStyle(ItemStyle itemStyle)
    • withEmphasis

      public ScatterSeries withEmphasis(ScatterSeries.Emphasis emphasis)
    • withBlur

      public ScatterSeries withBlur(ScatterSeries.Blur blur)
    • withSelect

      public ScatterSeries withSelect(ScatterSeries.Select select)
    • withProgressive

      public ScatterSeries withProgressive(Integer progressive)
    • withProgressiveThreshold

      public ScatterSeries withProgressiveThreshold(Integer progressiveThreshold)
    • withAnimation

      public ScatterSeries withAnimation(Boolean animation)
    • withAnimationThreshold

      public ScatterSeries withAnimationThreshold(Integer animationThreshold)
    • withAnimationDurationUpdate

      public ScatterSeries withAnimationDurationUpdate(Integer animationDurationUpdate)
    • withAnimationEasingUpdate

      public ScatterSeries withAnimationEasingUpdate(String animationEasingUpdate)
    • withAnimationDelayUpdate

      public ScatterSeries withAnimationDelayUpdate(Integer animationDelayUpdate)