Class PiePlotOptions

    • Constructor Detail

      • PiePlotOptions

        public PiePlotOptions()
    • Method Detail

      • getBorderColor

        public Color getBorderColor()
        Returns the color of the border surrounding each slice.

        Default: #FFFFFF

      • setBorderColor

        public void setBorderColor​(Color color)
        Sets the color of the border surrounding each slice.
      • setBorderColor

        public void setBorderColor​(String color)
        Sets the color of the border surrounding each slice.
      • setBorderColor

        public void setBorderColor​(LinearGradient color)
        Sets the color of the border surrounding each slice.
      • setBorderColor

        public void setBorderColor​(RadialGradient color)
        Sets the color of the border surrounding each slice.
      • getCenter

        public List<String> getCenter()
        Returns the center of the pie chart relative to the plot area. Can be percentages or pixel values. The default behavior is to center the pie so that all slices and data labels are within the plot area. As a consequence, the pie may actually jump around in a chart with dynamic values, as the data labels move. In that case, the center should be explicitly set, for example to ["50%", "50%"].
      • setCenter

        public void setCenter​(List<Object> center)
        Sets the center of the pie chart relative to the plot area. Can be percentages or pixel values. The default behavior is to center the pie so that all slices and data labels are within the plot area. As a consequence, the pie may actually jump around in a chart with dynamic values, as the data labels move. In that case, the center should be explicitly set, for example to ["50%", "50%"].
        Overrides:
        setCenter in class SeriesPlotOptions
      • setCenter

        public void setCenter​(Object... center)
        Description copied from class: SeriesPlotOptions
        Sets the center of the pie chart relative to the plot area. Can be percentages or pixel values. The default behaviour is to center the pie so that all slices and data labels are within the plot area. As a consequence, the pie may actually jump around in a chart with dynamic values, as the data labels move. In that case, the center should be explicitly set, for example to ["50%", "50%"].
        Overrides:
        setCenter in class SeriesPlotOptions
      • getColors

        public List<Color> getColors()
        Returns a series specific or series type specific color set to use instead of the global Charts.getColors().
      • setColors

        public void setColors​(List<Color> colors)
        Sets a series specific or series type specific color set to use instead of the global Charts.getColors().
      • setColors

        public void setColors​(String... source)
        Sets a series specific or series type specific color set to use instead of the global Charts.getColors().
      • getEndAngle

        public Number getEndAngle()
        Returns the end angle of the pie in degrees where 0 is top and 90 is right.

        Defaults to startAngle plus 360.

      • setEndAngle

        public void setEndAngle​(Number endAngle)
        Sets the end angle of the pie in degrees where 0 is top and 90 is right.

        Defaults to startAngle plus 360.

      • getFillColor

        public Color getFillColor()
        If the total sum of the pie's values is 0, the series is represented as an empty circle. The fillColor option defines the color of that circle. Use pie.borderWidth to set the border thickness.
        Since:
        7.2.1.0
      • setFillColor

        public void setFillColor​(Color fillColor)
        If the total sum of the pie's values is 0, the series is represented as an empty circle. The fillColor option defines the color of that circle. Use pie.borderWidth to set the border thickness.
        Since:
        7.2.1.0
      • setFillColor

        public void setFillColor​(String fillColor)
        If the total sum of the pie's values is 0, the series is represented as an empty circle. The fillColor option defines the color of that circle. Use pie.borderWidth to set the border thickness.
        Since:
        7.2.1.0
      • setFillColor

        public void setFillColor​(LinearGradient fillColor)
        If the total sum of the pie's values is 0, the series is represented as an empty circle. The fillColor option defines the color of that circle. Use pie.borderWidth to set the border thickness.
        Since:
        7.2.1.0
      • setFillColor

        public void setFillColor​(RadialGradient fillColor)
        If the total sum of the pie's values is 0, the series is represented as an empty circle. The fillColor option defines the color of that circle. Use pie.borderWidth to set the border thickness.
        Since:
        7.2.1.0
      • isIgnoreHiddenPoint

        public boolean isIgnoreHiddenPoint()
        Returns whether ignore the hidden point.

        Equivalent to Chart.isIgnoreHiddenSeries(), this option tells whether the series shall be redrawn as if the hidden point were null.

        The default value true.

      • setIgnoreHiddenPoint

        public void setIgnoreHiddenPoint​(boolean ignoreHiddenPoint)
        Sets whether ignore the hidden point.

        Equivalent to Chart.isIgnoreHiddenSeries(), this option tells whether the series shall be redrawn as if the hidden point were null.

        The default value true.

      • getInnerSize

        public String getInnerSize()
        Returns the size of the inner diameter for the pie. A size greater than 0 renders a donut chart. Can be a percentage or pixel value. Percentages are relative to the size of the plot area. Pixel values are given as integers.
      • setInnerSize

        public void setInnerSize​(String innerSize)
        Sets the size of the inner diameter for the pie. A size greater than 0 renders a donut chart. Can be a percentage or pixel value. Percentages are relative to the size of the plot area. Pixel values are given as integers.
      • setInnerSize

        public void setInnerSize​(Number innerSize)
        Sets the size of the inner diameter for the pie. A size greater than 0 renders a donut chart. Can be a percentage or pixel value. Percentages are relative to the size of the plot area. Pixel values are given as integers.
      • getMinSize

        public Number getMinSize()
        Returns the minimum size for a pie in response to auto margins. The pie will try to shrink to make room for data labels in side the plot area, but only to this size.

        Default: 80

      • setMinSize

        public void setMinSize​(Number minSize)
        Sets the minimum size for a pie in response to auto margins. The pie will try to shrink to make room for data labels in side the plot area, but only to this size.

        Default: 80

      • isShowInLegend

        public boolean isShowInLegend()
        Returns whether to display this particular series or series type in the legend. Pies are not shown in the legend by default.
        Overrides:
        isShowInLegend in class SeriesPlotOptions
      • setShowInLegend

        public void setShowInLegend​(boolean showInLegend)
        Sets whether to display this particular series or series type in the legend. Pies are not shown in the legend by default.
        Overrides:
        setShowInLegend in class SeriesPlotOptions
      • getSize

        public Object getSize()
        Returns the diameter of the pie relative to the plot area. Can be a percentage or pixel value. Pixel values are given as integers. The default behavior is to scale to the plot area and give room for data labels within the plot area. As a consequence, the size of the pie may vary when points are updated and data labels more around. In that case it is best to set a fixed value, for example "75%".

        Default: null

      • setSize

        public void setSize​(String size)
        Sets the diameter of the pie relative to the plot area. Can be a percentage or pixel value. Pixel values are given as integers. The default behavior is to scale to the plot area and give room for data labels within the plot area. As a consequence, the size of the pie may vary when points are updated and data labels more around. In that case it is best to set a fixed value, for example "75%".
      • setSize

        public void setSize​(Number size)
        Sets the diameter of the pie relative to the plot area. Can be a percentage or pixel value. Pixel values are given as integers. The default behavior is to scale to the plot area and give room for data labels within the plot area. As a consequence, the size of the pie may vary when points are updated and data labels more around. In that case it is best to set a fixed value, for example "75%".
      • getSlicedOffset

        public Number getSlicedOffset()
        Returns if a point is sliced, moved out from the center, how many pixels should it be moved?

        Default: 10

      • setSlicedOffset

        public void setSlicedOffset​(Number slicedOffset)
        Sets if a point is sliced, moved out from the center, how many pixels should it be moved?
      • getStartAngle

        public Number getStartAngle()
        Returns the start angle of the pie slices in degrees where 0 is top and 90 right.

        Default: 0

      • setStartAngle

        public void setStartAngle​(Number startAngle)
        Sets the start angle of the pie slices in degrees where 0 is top and 90 right.
      • isStickyTracking

        public boolean isStickyTracking()
        Returns sticky tracking of mouse events. When true, the mouseOut event on a series isn't triggered until the mouse moves over another series, or out of the plot area. When false, the mouseOut event on a series is triggered when the mouse leaves the area around the series' graph or markers. This also implies the tooltip. When stickyTracking is false and tooltip.shared is false, the tooltip will be hidden when moving the mouse between series.

        Default: false

        Overrides:
        isStickyTracking in class SeriesPlotOptions
      • setStickyTracking

        public void setStickyTracking​(boolean stickyTracking)
        Sets sticky tracking of mouse events. When true, the mouseOut event on a series isn't triggered until the mouse moves over another series, or out of the plot area. When false, the mouseOut event on a series is triggered when the mouse leaves the area around the series' graph or markers. This also implies the tooltip. When stickyTracking is false and tooltip.shared is false, the tooltip will be hidden when moving the mouse between series.
        Overrides:
        setStickyTracking in class SeriesPlotOptions
      • getThickness

        public Number getThickness()
        Returns thickness describing the ring size for a donut type chart, overriding getInnerSize().

        Default: null

        Since:
        10.2.1.0
      • setThickness

        public void setThickness​(Number thickness)
        Sets thickness describing the ring size for a donut type chart, overriding getInnerSize().

        Default: null

        Since:
        10.2.1.0