com.vaadin.flow.component.charts.model.

Class PlotBand

    • Constructor Detail

      • PlotBand

        public PlotBand()
    • Method Detail

      • setBorderColor

        public void setBorderColor(Color borderColor)

        Border color for the plot band. Also requires borderWidth to be set.

        Defaults to: null

      • setBorderWidth

        public void setBorderWidth(Number borderWidth)

        Border width for the plot band. Also requires borderColor to be set.

        Defaults to: 0

      • setClassName

        public void setClassName(String className)

        A custom class name, in addition to the default highcharts-plot-band, to apply to each individual band.

      • setColor

        public void setColor(Color color)

        The color of the plot band.

      • setFrom

        public void setFrom(Number from)

        The start position of the plot band in axis units.

      • setId

        public void setId(String id)

        An id used for identifying the plot band in Axis.removePlotBand.

      • 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

      • setLabel

        public void setLabel(Label label)

        Text labels for the plot bands

      • 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%

      • 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

      • setTo

        public void setTo(Number to)

        The end position of the plot band in axis units.

      • 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)

      • setTo

        @Deprecated
        public void setTo(Date date)

        Deprecated. as of 4.0. Use #setPointStart(Instant)