Class AbstractDataLabels

    • Constructor Detail

      • AbstractDataLabels

        public AbstractDataLabels()
    • Method Detail

      • setClassName

        public abstract void setClassName​(String className)
        A class name for the data label.
      • setBackgroundColor

        public abstract void setBackgroundColor​(Color backgroundColor)
        The background color or gradient for the data label.
      • setBorderColor

        public abstract void setBorderColor​(Color borderColor)
        The border color for the data label.
      • setBorderRadius

        public abstract void setBorderRadius​(Number borderRadius)
        The border radius in pixels for the data label.
      • setColor

        public abstract void setColor​(Color color)
        The text color for the data labels.
      • setBorderWidth

        public abstract void setBorderWidth​(Number borderWidth)
        The border width in pixels for the data label.
      • setCrop

        public abstract void setCrop​(Boolean crop)
        Whether to hide data labels that are outside the plot area. By default, the data label is moved inside the plot area according to the overflow option.
      • setDefer

        public abstract void setDefer​(Boolean defer)
        Whether to defer displaying the data labels until the initial series animation has finished.
      • setEnabled

        public abstract void setEnabled​(Boolean enabled)
        Enable or disable the data labels.
      • setFormat

        public abstract void setFormat​(String format)
        A format string for the data label. Available variables are the same as for formatter.
      • setFormatter

        public abstract void setFormatter​(String _fn_formatter)
        Callback JavaScript function to format the data label. Note that if a format is defined, the format takes precedence and the formatter is ignored.
      • setInside

        public abstract void setInside​(Boolean inside)
        For points with an extent, like columns, whether to align the data label inside the box or to the actual value point.
      • setOverflow

        public abstract void setOverflow​(String overflow)
        How to handle data labels that flow outside the plot area. The default is justify, which aligns them inside the plot area. For columns and bars, this means it will be moved inside the bar. To display data labels outside the plot area, set crop to false and overflow to "none".
      • setPadding

        public abstract void setPadding​(Number padding)
        When either the borderWidth or the backgroundColor is set, this is the padding within the box.
      • setRotation

        public abstract void setRotation​(Number rotation)
        Text rotation in degrees. Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label.
      • setShadow

        public abstract void setShadow​(Boolean shadow)
        The shadow of the box.
      • setShape

        public abstract void setShape​(Shape shape)
        The name of a symbol to use for the border around the label. Symbols are predefined functions on the Renderer object.
      • setStyle

        public abstract void setStyle​(Style style)
        Styles for the label.
      • setUseHTML

        public abstract void setUseHTML​(Boolean useHTML)
        Whether to use HTML to render the labels.
      • setVerticalAlign

        public abstract void setVerticalAlign​(VerticalAlign verticalAlign)
        The vertical alignment of a data label.
      • setZIndex

        public abstract void setZIndex​(Number zIndex)
        The Z index of the data labels. The default Z index puts it above the series. Use a Z index of 2 to display it behind the series.