Class BarDataLabels

    • Constructor Detail

      • BarDataLabels

        public BarDataLabels()
    • Method Detail

      • getAlign

        public String getAlign()
        Returns the alignment of the data label compared to the point. Can be one of "left", "center" or "right".

        Defaults to "left".

        Overrides:
        getAlign in class DataLabels
      • setAlign

        public void setAlign​(String align)
        Sets the alignment of the data label compared to the point. Can be one of "left", "center" or "right". Defaults to "center". 'align the alignment of the data label compared to the point. Can be one of "left", "center" or "right".

        Defaults to "left".

        Overrides:
        setAlign in class DataLabels
      • getX

        public Number getX()
        Returns the x position offset of the label relative to the point.

        Default: 5

        Overrides:
        getX in class DataLabels
      • setX

        public void setX​(Number x)
        Sets the x position offset of the label relative to the point.

        Default: 5

        Overrides:
        setX in class DataLabels