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
MrWooJ
2014-12-14 15:52:16 +0330
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2b795b955b7cfbf21307535344c2f1e0861d4006
2b795b95
1 parent
3d56130f
modifying PNScatterChartData
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
39 deletions
PNChart/PNScatterChartData.m
PNChart/PNScatterChartData.m
View file @
2b795b9
...
...
@@ -24,45 +24,8 @@
{
_inflexionPointStyle
=
PNScatterChartPointStyleCircle
;
_fillColor
=
[
UIColor
grayColor
];
_strokeColor
=
[
UIColor
blackColor
];
_size
=
10
;
}
-
(
CAShapeLayer
*
)
drawingPoints
{
if
(
_inflexionPointStyle
==
PNScatterChartPointStyleCircle
)
{
float
radius
=
_size
;
CAShapeLayer
*
circle
=
[
CAShapeLayer
layer
];
// Make a circular shape
circle
.
path
=
[
UIBezierPath
bezierPathWithRoundedRect
:
CGRectMake
(
0
,
0
,
2
.
0
*
radius
,
2
.
0
*
radius
)
cornerRadius
:
radius
].
CGPath
;
// Configure the apperence of the circle
circle
.
fillColor
=
[
_fillColor
CGColor
];
circle
.
strokeColor
=
[
_strokeColor
CGColor
];
circle
.
lineWidth
=
1
;
// Add to parent layer
return
circle
;
}
else
if
(
_inflexionPointStyle
==
PNScatterChartPointStyleSquare
)
{
float
side
=
_size
;
CAShapeLayer
*
square
=
[
CAShapeLayer
layer
];
// Make a circular shape
square
.
path
=
[
UIBezierPath
bezierPathWithRect
:
CGRectMake
(
0
,
0
,
side
,
side
)].
CGPath
;
// Configure the apperence of the circle
square
.
fillColor
=
[
_fillColor
CGColor
];
square
.
strokeColor
=
[
_strokeColor
CGColor
];
square
.
lineWidth
=
1
;
// Add to parent layer
return
square
;
}
else
{
// you cann add your own scatter chart poin here
}
return
nil
;
_strokeColor
=
[
UIColor
clearColor
];
_size
=
3
;
}
@end
...
...
Please
register
or
login
to post a comment