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-05-05 16:42:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b0bb8fa160a58ae1a8cc5d031d71473f50d62ab4
b0bb8fa1
1 parent
078d3c12
Fix pie chart style
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
PNChartDemo/PCChartsTableViewController.m
PNChartDemo/PCChartsTableViewController.m
View file @
b0bb8fa
...
...
@@ -159,14 +159,14 @@
NSArray
*
items
=
@[[
PNPieChartDataItem
dataItemWithValue
:
10
color
:
PNRed
],
[
PNPieChartDataItem
dataItemWithValue
:
20
color
:
PNBlue
description
:
@"WWDC"
],
[
PNPieChartDataItem
dataItemWithValue
:
40
color
:
PNGreen
description
:
@"G
oogle
I/O"
],
[
PNPieChartDataItem
dataItemWithValue
:
40
color
:
PNGreen
description
:
@"G
OOL
I/O"
],
];
PNPieChart
*
pieChart
=
[[
PNPieChart
alloc
]
initWithFrame
:
CGRectMake
(
0
,
135
.
0
,
SCREEN_WIDTH
,
SCREEN_WIDTH
)
items
:
items
];
PNPieChart
*
pieChart
=
[[
PNPieChart
alloc
]
initWithFrame
:
CGRectMake
(
40
.
0
,
155
.
0
,
240
.
0
,
240
.
0
)
items
:
items
];
pieChart
.
descriptionTextColor
=
[
UIColor
whiteColor
];
pieChart
.
descriptionTextFont
=
[
UIFont
fontWithName
:
@"Avenir-Medium"
size
:
1
8
.
0
];
pieChart
.
descriptionTextFont
=
[
UIFont
fontWithName
:
@"Avenir-Medium"
size
:
1
4
.
0
];
[
pieChart
strokeChart
];
...
...
Please
register
or
login
to post a comment