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
kevinzhow
2013-12-15 10:34:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1dedf69464369a6994f14fa6b2295e3e670cd756
1dedf694
1 parent
fe22b168
Update color of lines
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
PNChartDemo/PCChartsTableViewController.m
PNChartDemo/PCChartsTableViewController.m
View file @
1dedf69
...
...
@@ -66,7 +66,7 @@
// Line Chart Nr.1
PNLineChartData
*
data01
=
[
PNLineChartData
new
];
data01
.
color
=
[
UIColor
redColor
]
;
data01
.
color
=
PNFreshGreen
;
data01
.
itemCount
=
lineChart
.
xLabels
.
count
;
data01
.
getData
=
^
(
NSUInteger
item
)
{
CGFloat
y
=
item
*
10
;
...
...
@@ -75,7 +75,7 @@
// Line Chart Nr.2
PNLineChartData
*
data02
=
[
PNLineChartData
new
];
data02
.
color
=
[
UIColor
blueColor
]
;
data02
.
color
=
PNTwitterColor
;
data02
.
itemCount
=
lineChart
.
xLabels
.
count
;
data02
.
getData
=
^
(
NSUInteger
item
)
{
CGFloat
y
=
item
==
0
?
(
item
*
5
)
+
10
:
(
item
*
5
);
...
...
@@ -138,7 +138,7 @@
}
-
(
void
)
userClickedOnLineKeyPoint
:
(
CGPoint
)
point
andPointIndex
:
(
NSInteger
)
index
{
NSLog
(
@"Click Key on line %f, %f and index is %
d"
,
point
.
x
,
point
.
y
,
index
);
NSLog
(
@"Click Key on line %f, %f and index is %
ld"
,
point
.
x
,
point
.
y
,(
long
)
index
);
}
-
(
void
)
userClickedOnLinePoint
:
(
CGPoint
)
point
{
...
...
Please
register
or
login
to post a comment