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:54:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
46c93aca0cb8603b5b36abc22df3d8b9773026de
46c93aca
1 parent
b0bb8fa1
Fix readme
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
README.md
README.md
View file @
46c93ac
...
...
@@ -95,6 +95,25 @@ circleChart.backgroundColor = [UIColor clearColor];
```
[]([https://dl.dropboxusercontent.com/u/1599662/pie.png])
```
objective-c
# import "PNChart.h"
//For PieChart
NSArray
*
items = @
[
[PNPieChartDataItem dataItemWithValue:10 color:PNRed
]
,
[
PNPieChartDataItem dataItemWithValue:20 color:PNBlue description:@"WWDC"
]
,
[
PNPieChartDataItem dataItemWithValue:40 color:PNGreen description:@"GOOL I/O"
]
,
];
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:14.0
]
;
[
pieChart strokeChart
]
;
```
#### Callback
Currently callback only works on Linechart
...
...
Please
register
or
login
to post a comment