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
klauslanza
2015-05-31 11:12:09 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33c5b16f4e25474d02c32955f53e760c3ec9847a
33c5b16f
1 parent
a8305739
Added format block in previous method.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
PNChart/PNLineChart.m
PNChart/PNLineChart.m
View file @
33c5b16
...
...
@@ -821,8 +821,14 @@
}
}
-
(
NSString
*
)
formatYLabel
:
(
double
)
value
{
if
(
self
.
yLabelBlockFormatter
)
{
return
self
.
yLabelBlockFormatter
(
value
);
}
else
{
if
(
!
self
.
thousandsSeparator
)
{
NSString
*
format
=
self
.
yLabelFormat
?
:
@"%1.f"
;
return
[
NSString
stringWithFormat
:
format
,
value
];
...
...
@@ -832,9 +838,9 @@
[
numberFormatter
setFormatterBehavior
:
NSNumberFormatterBehavior10_4
];
[
numberFormatter
setNumberStyle
:
NSNumberFormatterDecimalStyle
];
return
[
numberFormatter
stringFromNumber
:
[
NSNumber
numberWithDouble
:
value
]];
}
}
-
(
UIView
*
)
getLegendWithMaxWidth
:
(
CGFloat
)
mWidth
{
if
([
self
.
chartData
count
]
<
1
)
{
return
nil
;
...
...
Please
register
or
login
to post a comment