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
Antoine Gamond
2014-08-25 17:30:05 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1c6921cceea4b107261a2bd7d698b7df80dffe16
1c6921cc
1 parent
84928f39
Fix bug
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
PNChart/PNCircleChart.h
PNChart/PNLineChart.m
PNChart/PNCircleChart.h
View file @
1c6921c
...
...
@@ -8,9 +8,9 @@
#import <UIKit/UIKit.h>
#import "PNColor.h"
#import
"UICountingLabel.h"
#import
<UICountingLabel/UICountingLabel.h>
typedef
NS_ENUM
(
NSUInteger
,
PNChartFormatType
)
{
typedef
NS_ENUM
(
NSUInteger
,
PNChartFormatType
)
{
PNChartFormatTypePercent
,
PNChartFormatTypeDollar
,
PNChartFormatTypeNone
...
...
PNChart/PNLineChart.m
View file @
1c6921c
...
...
@@ -279,7 +279,7 @@
innerGrade
=
(
yValue
-
_yValueMin
)
/
(
_yValueMax
-
_yValueMin
);
}
CGFloat
offSetX
=
(
_chartCavanWidth
-
_xLabelWidth
)
/
(
chartData
.
itemCount
-
1
);
CGFloat
offSetX
=
(
_chartCavanWidth
)
/
(
chartData
.
itemCount
);
int
x
=
2
*
_chartMargin
+
(
i
*
offSetX
);
int
y
=
_chartCavanHeight
-
(
innerGrade
*
_chartCavanHeight
)
+
(
_yLabelHeight
/
2
);
...
...
Please
register
or
login
to post a comment