Class PieDataLabels

    • Constructor Detail

      • PieDataLabels

        public PieDataLabels()
    • Method Detail

      • setConnectorPadding

        public void setConnectorPadding​(Number connectorPadding)
        Sets the distance from the data label to the connector.

        Defaults to 5.

      • getConnectorPadding

        public Number getConnectorPadding()
        Returns the distance from the data label to the connector.

        Defaults to 5.

      • setConnectorWidth

        public void setConnectorWidth​(Number connectorWidth)
        Sets the width of the line connecting the data label to the pie slice.

        Defaults to 1

        Overrides:
        setConnectorWidth in class DataLabels
      • getConnectorWidth

        public Number getConnectorWidth()
        Returns the width of the line connecting the data label to the pie slice.

        Defaults to 1

        Overrides:
        getConnectorWidth in class DataLabels
      • setConnectorColor

        public void setConnectorColor​(String connectorColor)
        Sets the color of the line connecting the data label to the pie slice. The default color is the same as the point's color.

        Defaults to {point.color}.

        Overrides:
        setConnectorColor in class DataLabels
      • getConnectorColor

        public String getConnectorColor()
        Returns the color of the line connecting the data label to the pie slice. The default color is the same as the point's color.

        Defaults to {point.color}.

        Overrides:
        getConnectorColor in class DataLabels
      • getDistance

        public Object getDistance()
        Returns the distance of the data labels which is used for Pie chart only.

        Default: 30

        Overrides:
        getDistance in class DataLabels
      • setDistance

        public void setDistance​(Number distance)
        Sets the distance of the data labels which is used for Pie chart only.
        Overrides:
        setDistance in class DataLabels
      • setDistance

        public void setDistance​(String distance)
        Sets the distance of the data labels which is used for Pie chart only. Can also be defined as a percentage of pie's radius.
        Overrides:
        setDistance in class DataLabels
        Since:
        7.2.1.0
      • isEnabled

        public boolean isEnabled()
        Returns enable or disable the data labels.

        Default: true

        Overrides:
        isEnabled in class DataLabels
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets enable or disable the data labels.

        Default: true

        Overrides:
        setEnabled in class DataLabels