Class PlotBand

All Implemented Interfaces:
Serializable

public class PlotBand extends AbstractConfigurationObject
An array of objects defining plot bands on the Y axis.
See Also:
  • Constructor Details

    • PlotBand

      public PlotBand()
    • PlotBand

      public PlotBand(Number from, Number to, Color color)
  • Method Details

    • getBorderColor

      public Color getBorderColor()
      See Also:
    • setBorderColor

      public void setBorderColor(Color borderColor)
      Border color for the plot band. Also requires borderWidth to be set.

      Defaults to: null

    • getBorderWidth

      public Number getBorderWidth()
      See Also:
    • setBorderWidth

      public void setBorderWidth(Number borderWidth)
      Border width for the plot band. Also requires borderColor to be set.

      Defaults to: 0

    • getClassName

      public String getClassName()
      See Also:
    • setClassName

      public void setClassName(String className)
      A custom class name, in addition to the default highcharts-plot-band, to apply to each individual band.
    • getColor

      public Color getColor()
      See Also:
    • setColor

      public void setColor(Color color)
      The color of the plot band.
    • getFrom

      public Number getFrom()
      See Also:
    • setFrom

      public void setFrom(Number from)
      The start position of the plot band in axis units.
    • getId

      public String getId()
      See Also:
    • setId

      public void setId(String id)
      An id used for identifying the plot band in Axis.removePlotBand.
    • getInnerRadius

      public String getInnerRadius()
      See Also:
    • setInnerRadius

      public void setInnerRadius(String innerRadius)
      In a gauge chart, this option determines the inner radius of the plot band that stretches along the perimeter. It can be given as a percentage string, like "100%", or as a pixel number, like 100. By default, the inner radius is controlled by the thickness option.

      Defaults to: null

    • getLabel

      public Label getLabel()
      See Also:
    • setLabel

      public void setLabel(Label label)
      Text labels for the plot bands
    • getOuterRadius

      public String getOuterRadius()
      See Also:
    • setOuterRadius

      public void setOuterRadius(String outerRadius)
      In a gauge chart, this option determines the outer radius of the plot band that stretches along the perimeter. It can be given as a percentage string, like "100%", or as a pixel number, like 100.

      Defaults to: 100%

    • getThickness

      public String getThickness()
      See Also:
    • setThickness

      public void setThickness(String thickness)
      In a gauge chart, this option sets the width of the plot band stretching along the perimeter. It can be given as a percentage string, like "10%", or as a pixel number, like 10. The default value 10 is the same as the default tickLength, thus making the plot band act as a background for the tick markers.

      Defaults to: 10

    • getTo

      public Number getTo()
      See Also:
    • setTo

      public void setTo(Number to)
      The end position of the plot band in axis units.
    • getZIndex

      public Number getZIndex()
      See Also:
    • setZIndex

      public void setZIndex(Number zIndex)
      The z index of the plot band within the chart, relative to other elements. Using the same z index as another element may give unpredictable results, as the last rendered element will be on top. Values from 0 to 20 make sense.
    • setFrom

      @Deprecated public void setFrom(Date date)
      Deprecated.
      as of 4.0. Use #setPointStart(Instant)
    • setFrom

      public void setFrom(Instant instant)
      See Also:
    • setTo

      @Deprecated public void setTo(Date date)
      Deprecated.
      as of 4.0. Use #setPointStart(Instant)
    • setTo

      public void setTo(Instant instant)
      See Also: