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
Gabe Heafitz
2014-10-30 23:24:31 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dc24a19fb97e68333ba96a8e95031a7181959a02
dc24a19f
1 parent
5b2b3bb8
Auto-indent and remove trailing whitespace.
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2 additions
and
17 deletions
PNChart/PNBar.m
PNChart/PNBarChart.m
PNChart/PNCircleChart.m
PNChart/PNColor.m
PNChart/PNLineChart.h
PNChart/PNLineChartData.h
PNChart/PNPieChartDataItem.m
PNChartDemo/PCAppDelegate.m
PNChartDemo/PCChartViewController.h
PNChart/PNBar.m
View file @
dc24a19
PNChart/PNBarChart.m
View file @
dc24a19
PNChart/PNCircleChart.m
View file @
dc24a19
PNChart/PNColor.m
View file @
dc24a19
...
...
@@ -20,6 +20,7 @@
CGContextFillRect
(
context
,
rect
);
UIImage
*
img
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
return
img
;
}
...
...
PNChart/PNLineChart.h
View file @
dc24a19
...
...
@@ -20,7 +20,6 @@
@property
(
nonatomic
,
retain
)
id
<
PNChartDelegate
>
delegate
;
@property
(
nonatomic
)
NSArray
*
xLabels
;
@property
(
nonatomic
)
NSArray
*
yLabels
;
/**
...
...
@@ -29,31 +28,18 @@
@property
(
nonatomic
)
NSArray
*
chartData
;
@property
(
nonatomic
)
NSMutableArray
*
pathPoints
;
@property
(
nonatomic
)
CGFloat
xLabelWidth
;
@property
(
nonatomic
)
UIFont
*
xLabelFont
;
@property
(
nonatomic
)
UIColor
*
xLabelColor
;
@property
(
nonatomic
)
CGFloat
yValueMax
;
@property
(
nonatomic
)
CGFloat
yValueMin
;
@property
(
nonatomic
)
NSInteger
yLabelNum
;
@property
(
nonatomic
)
CGFloat
yLabelHeight
;
@property
(
nonatomic
)
UIFont
*
yLabelFont
;
@property
(
nonatomic
)
UIColor
*
yLabelColor
;
@property
(
nonatomic
)
CGFloat
chartCavanHeight
;
@property
(
nonatomic
)
CGFloat
chartCavanWidth
;
@property
(
nonatomic
)
CGFloat
chartMargin
;
@property
(
nonatomic
)
BOOL
showLabel
;
/**
...
...
PNChart/PNLineChartData.h
View file @
dc24a19
...
...
@@ -6,7 +6,6 @@
#import <Foundation/Foundation.h>
typedef
NS_ENUM
(
NSUInteger
,
PNLineChartPointStyle
)
{
PNLineChartPointStyleNone
=
0
,
PNLineChartPointStyleCircle
=
1
,
PNLineChartPointStyleSquare
=
3
...
...
PNChart/PNPieChartDataItem.m
View file @
dc24a19
...
...
@@ -21,7 +21,7 @@
+
(
instancetype
)
dataItemWithValue
:(
CGFloat
)
value
color
:(
UIColor
*
)
color
description
:(
NSString
*
)
description
{
description
:(
NSString
*
)
description
{
PNPieChartDataItem
*
item
=
[
PNPieChartDataItem
dataItemWithValue
:
value
color
:
color
];
item
.
textDescription
=
description
;
return
item
;
...
...
PNChartDemo/PCAppDelegate.m
View file @
dc24a19
PNChartDemo/PCChartViewController.h
View file @
dc24a19
...
...
@@ -10,5 +10,4 @@
@interface
PCChartViewController
:
UIViewController
@end
...
...
Please
register
or
login
to post a comment