You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.charts.model.

Class PlotLine

  • All Implemented Interfaces:

    Serializable

    public class PlotLine
    extends AbstractConfigurationObject

    An array of lines stretching across the plot area, marking a specific value on one of the axes.

    In styled mode, the plot lines are styled by the .highcharts-plot-line class in addition to the className option.

    See Also:

    Serialized Form

    • Constructor Detail

      • PlotLine

        public PlotLine()
    • Method Detail

      • setClassName

        public void setClassName​(String className)

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

      • setColor

        public void setColor​(Color color)

        The color of the line.

      • setDashStyle

        public void setDashStyle​(DashStyle dashStyle)

        The dashing or dot style for the plot line. For possible values see this overview.

        Defaults to: Solid

      • setId

        public void setId​(String id)

        An id used for identifying the plot line in Axis.removePlotLine.

      • setLabel

        public void setLabel​(Label label)

        Text labels for the plot bands

      • setValue

        public void setValue​(Number value)

        The position of the line in axis units.

      • setWidth

        public void setWidth​(Number width)

        The width or thickness of the plot line.

      • setZIndex

        public void setZIndex​(Number zIndex)

        The z index of the plot line within the chart.