Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
PNChart
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Mendy Krinsky
2015-08-21 01:51:01 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d1798d26b53a72207d806822cede89a40cda6b3
7d1798d2
1 parent
8e83a89b
Added decimal options for circle chart
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
PNChart/PNCircleChart.h
PNChart/PNCircleChart.m
PNChart/PNCircleChart.h
View file @
7d1798d
...
...
@@ -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)
...
...
PNChart/PNCircleChart.m
View file @
7d1798d
...
...
@@ -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"
;
...
...
Please
register
or
login
to post a comment