getPieLabel method

  1. @override
String getPieLabel (
  1. double value,
  2. PieEntry pieEntry
)
override

Implementation

@override
String getPieLabel(double value, PieEntry pieEntry) {
  if (_controller != null &&
      _controller.painter != null &&
      _controller.painter.isUsePercentValuesEnabled()) {
    // Converted to percent
    return getFormattedValue1(value);
  } else {
    // raw value, skip percent sign
    return _format.format(value);
  }
}