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
Kevin
2015-08-24 11:59:29 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
33110ba572932600c23cdd1a967e0edd5f5d3212
33110ba5
2 parents
bd4d2709
7d1798d2
Merge pull request #244 from MendyK/master
Added decimal options for circle chart
Hide 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 @
33110ba
...
...
@@ -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 @
33110ba
...
...
@@ -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