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
2014-12-12 05:03:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eecd4065d1ef07f6b7b6268d3226f6ccbec5077b
eecd4065
1 parent
1dc88b09
Change path value update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
PNChart/PNLineChart.m
PNChartDemo/PCChartViewController.m
PNChart/PNLineChart.m
View file @
eecd406
...
...
@@ -517,6 +517,7 @@
CABasicAnimation
*
pathAnimation
=
[
CABasicAnimation
animationWithKeyPath
:
@"path"
];
pathAnimation
.
fromValue
=
(
id
)
chartLine
.
path
;
pathAnimation
.
toValue
=
(
id
)[
progressline
CGPath
];
pathAnimation
.
duration
=
0
.
5
f
;
pathAnimation
.
autoreverses
=
NO
;
...
...
@@ -525,6 +526,7 @@
CABasicAnimation
*
pointPathAnimation
=
[
CABasicAnimation
animationWithKeyPath
:
@"path"
];
pointPathAnimation
.
fromValue
=
(
id
)
pointLayer
.
path
;
pointPathAnimation
.
toValue
=
(
id
)[
pointPath
CGPath
];
pointPathAnimation
.
duration
=
0
.
5
f
;
pointPathAnimation
.
autoreverses
=
NO
;
...
...
PNChartDemo/PCChartViewController.m
View file @
eecd406
...
...
@@ -75,7 +75,7 @@
// Line Chart #1
NSArray
*
data01Array
=
@[
@30.1
,
@2
0.1
,
@106.4
,
@162.2
,
@86.2
,
@27.2
,
@7
6.2
];
NSArray
*
data01Array
=
@[
@30.1
,
@2
20.1
,
@106.4
,
@22.2
,
@136.2
,
@67.2
,
@3
6.2
];
PNLineChartData
*
data01
=
[
PNLineChartData
new
];
data01
.
color
=
PNFreshGreen
;
data01
.
itemCount
=
data01Array
.
count
;
...
...
@@ -86,7 +86,7 @@
};
// Line Chart #2
NSArray
*
data02Array
=
@[
@60.1
,
@120.1
,
@126.4
,
@102.2
,
@
26.2
,
@67.2
,
@17
6.2
];
NSArray
*
data02Array
=
@[
@60.1
,
@120.1
,
@126.4
,
@102.2
,
@
56.2
,
@87.2
,
@13
6.2
];
PNLineChartData
*
data02
=
[
PNLineChartData
new
];
data02
.
color
=
PNTwitterColor
;
data02
.
itemCount
=
data02Array
.
count
;
...
...
Please
register
or
login
to post a comment