Mendy Krinsky

Added decimal options for circle chart

... ... @@ -13,7 +13,9 @@
typedef NS_ENUM (NSUInteger, PNChartFormatType) {
PNChartFormatTypePercent,
PNChartFormatTypeDollar,
PNChartFormatTypeNone
PNChartFormatTypeNone,
PNChartFormatTypeDecimal,
PNChartFormatTypeDecimalTwoPlaces,
};
#define DEGREES_TO_RADIANS(angle) ((angle) / 180.0 * M_PI)
... ...
... ... @@ -131,6 +131,12 @@ displayCountingLabel:(BOOL)displayCountingLabel
case PNChartFormatTypeDollar:
format = @"$%d";
break;
case PNChartFormatTypeDecimal:
format = @"%.1f";
break;
case PNChartFormatTypeDecimalTwoPlaces:
format = @"%.2f";
break;
case PNChartFormatTypeNone:
default:
format = @"%d";
... ...