Package 

Class PieDataSet

  • All Implemented Interfaces:
    com.github.mikephil.charting.interfaces.datasets.IDataSet , com.github.mikephil.charting.interfaces.datasets.IDataSet , com.github.mikephil.charting.interfaces.datasets.IPieDataSet , java.io.Serializable

    
    public class PieDataSet
    extends DataSet<PieEntry> implements IPieDataSet
                        
    • Method Summary

      Modifier and Type Method Description
      DataSet<PieEntry> copy() Provides an exact copy of the DataSet this method is used on.
      void setSliceSpace(float spaceDp) Sets the space that is left out between the piechart-slices in dp.
      float getSliceSpace() Returns the space that is set to be between the piechart-slices of thisDataSet, in pixels.
      void setAutomaticallyDisableSliceSpacing(boolean autoDisable) When enabled, slice spacing will be 0.0 when the smallest value is going to besmaller than the slice spacing itself.
      boolean isAutomaticallyDisableSliceSpacingEnabled() When enabled, slice spacing will be 0.0 when the smallest value is going to besmaller than the slice spacing itself.
      void setSelectionShift(float shift) sets the distance the highlighted piechart-slice of this DataSet is"shifted" away from the center of the chart, default 12f
      float getSelectionShift() Returns the distance a highlighted piechart slice is "shifted" away fromthe chart-center in dp.
      PieDataSet.ValuePosition getXValuePosition()
      void setXValuePosition(PieDataSet.ValuePosition xValuePosition)
      PieDataSet.ValuePosition getYValuePosition()
      void setYValuePosition(PieDataSet.ValuePosition yValuePosition)
      boolean isUsingSliceColorAsValueLineColor() This method is deprecated.Use isUseValueColorForLineEnabled() instead.
      void setUsingSliceColorAsValueLineColor(boolean enabled) This method is deprecated.Use setUseValueColorForLine(...) instead.
      int getValueLineColor() When valuePosition is OutsideSlice, indicates line color
      void setValueLineColor(int valueLineColor)
      boolean isUseValueColorForLineEnabled() When valuePosition is OutsideSlice and enabled, line will have the same color as the slice
      void setUseValueColorForLine(boolean enabled)
      float getValueLineWidth() When valuePosition is OutsideSlice, indicates line width
      void setValueLineWidth(float valueLineWidth)
      float getValueLinePart1OffsetPercentage() When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size
      void setValueLinePart1OffsetPercentage(float valueLinePart1OffsetPercentage)
      float getValueLinePart1Length() When valuePosition is OutsideSlice, indicates length of first half of the line
      void setValueLinePart1Length(float valueLinePart1Length)
      float getValueLinePart2Length() When valuePosition is OutsideSlice, indicates length of second half of the line
      void setValueLinePart2Length(float valueLinePart2Length)
      boolean isValueLineVariableLength() When valuePosition is OutsideSlice, this allows variable line length
      void setValueLineVariableLength(boolean valueLineVariableLength)
      Integer getHighlightColor() Gets the color for the highlighted sector
      void setHighlightColor(@Nullable() Integer color) Sets the color for the highlighted sector (null for using entry color)
      • Methods inherited from class com.github.mikephil.charting.data.DataSet

        addEntry, addEntryOrdered, calcMinMax, calcMinMaxY, clear, copy, getEntries, getEntriesForXValue, getEntryCount, getEntryForIndex, getEntryForXValue, getEntryForXValue, getEntryIndex, getEntryIndex, getValues, getXMax, getXMin, getYMax, getYMin, removeEntry, setEntries, setValues, toSimpleString, toString
      • Methods inherited from class com.github.mikephil.charting.data.BaseDataSet

        addColor, contains, getAxisDependency, getColor, getColors, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getIconsOffset, getIndexInEntries, getLabel, getValueColors, getValueFormatter, getValueTextColor, getValueTextSize, getValueTypeface, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, notifyDataSetChanged, removeEntry, removeEntryByXValue, removeFirst, removeLast, resetColors, setAxisDependency, setColor, setColors, setDrawIcons, setDrawValues, setForm, setFormLineDashEffect, setFormLineWidth, setFormSize, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisible
      • Methods inherited from class com.github.mikephil.charting.interfaces.datasets.IDataSet

        contains, getAxisDependency, getColor, getColor, getColors, getEntryForXValue, getEntryIndex, getEntryIndex, getForm, getFormLineDashEffect, getFormLineWidth, getFormSize, getIconsOffset, getIndexInEntries, getLabel, getValueFormatter, getValueTextColor, getValueTextColor, getValueTextSize, getValueTypeface, isDrawIconsEnabled, isDrawValuesEnabled, isHighlightEnabled, isVisible, needsFormatter, removeEntry, removeEntryByXValue, removeFirst, removeLast, setAxisDependency, setDrawIcons, setDrawValues, setHighlightEnabled, setIconsOffset, setLabel, setValueFormatter, setValueTextColor, setValueTextColors, setValueTextSize, setValueTypeface, setVisible
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait