Class TargetOptions

java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.TargetOptions
All Implemented Interfaces:
Serializable

public class TargetOptions extends AbstractConfigurationObject
Set options related with look and position of targets.
See Also:
  • Constructor Details

    • TargetOptions

      public TargetOptions()
  • Method Details

    • getBorderColor

      public Color getBorderColor()
      See Also:
    • setBorderColor

      public void setBorderColor(Color borderColor)
      Can set a borderColor of the rectangle representing the target. When not set, the point's border color is used.
    • getBorderWidth

      public Number getBorderWidth()
      See Also:
    • setBorderWidth

      public void setBorderWidth(Number borderWidth)
      Can set the borderWidth of the rectangle representing the target.

      Defaults to: 0

    • getColor

      public Color getColor()
      See Also:
    • setColor

      public void setColor(Color color)
      Can set a color of the rectangle representing the target. When not set, point's color (if set in point's options - color) or zone of the target value (if zones or negativeColor are set) or the same color as the point has is used.
    • getHeight

      public String getHeight()
      See Also:
    • setHeight

      public void setHeight(String height)
      The height of the rectangle representing the target.

      Defaults to: 3

    • getWidth

      public String getWidth()
      See Also:
    • setWidth

      public void setWidth(String width)
      The width of the rectangle representing the target. Could be set as a pixel value or as a percentage of a column width.

      Defaults to: 140%