kevinzhow/PNChart — an open-source project — sits at 9.6k GitHub stars. A simple and beautiful chart lib used in Piner and CoinsMan for iOS
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
You can also find swift version at here https://github.com/kevinzhow/PNChart-Swift
A simple and beautiful chart lib with animation used in Piner and CoinsMan for iOS
Requirements
PNChart works on iOS 7.0+ and is compatible with ARC projects.
If you need support for iOS 6, use PNChart <= 0.8.1. Note that 0.8.2 supports iOS 8.0+ only, 0.8.3 and newer supports iOS 7.0+.
It depends on the following Apple frameworks, which should already be included with most Xcode templates:
Foundation.framework
UIKit.framework
CoreGraphics.framework
QuartzCore.framework
You will need LLVM 3.0 or later in order to build PNChart.
Usage
Cocoapods
CocoaPods is the recommended way to add PNChart to your project.
Add a pod entry for PNChart to your Podfile pod 'PNChart'
Install the pod(s) by running pod install.
Include PNChart wherever you need it with #import "PNChart.h".
You can set different colors for the same PNLineChartData item. for instance you can use "color" red for values less than 50 and use purple for values greater than 150.
Legend has been added to PNChart for Line and Pie Charts. Legend items position can be stacked or in series.
#import "PNChart.h"
//For Line Chart
//Add Line Titles for the Legend
data01.dataTitle = @"Alpha";
data02.dataTitle = @"Beta Beta Beta Beta";
//Build the legend
self.lineChart.legendStyle = PNLegendItemStyleSerial;
UIView *legend = [self.lineChart getLegendWithMaxWidth:320];
//Move legend to the desired position and add to view
[legend setFrame:CGRectMake(100, 400, legend.frame.size.width, legend.frame.size.height)];
[self.view addSubview:legend];
//For Pie Chart
//Build the legend
self.pieChart.legendStyle = PNLegendItemStyleStacked;
UIView *legend = [self.pieChart getLegendWithMaxWidth:200];
//Move legend to the desired position and add to view
[legend setFrame:CGRectMake(130, 350, legend.frame.size.width, legend.frame.size.height)];
[self.view addSubview:legend];
Grid Lines
Grid lines have been added to PNChart for Line Chart.
//For DelegateMethod
-(void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex pointIndex:(NSInteger)pointIndex{
NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex);
}
-(void)userClickedOnLinePoint:(CGPoint)point lineIndex:(NSInteger)lineIndex{
NSLog(@"Click on line %f, %f, line index is %d",point.x, point.y, (int)lineIndex);
}
License
This code is distributed under the terms and conditions of the MIT license.
SpecialThanks
@lexrus CocoaPods Spec
ZhangHang Pie Chart
MrWooj Scatter Chart
No homepage URL was recorded for kevinzhow/PNChart in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is kevinzhow/PNChart open source?
Yes — kevinzhow/PNChart ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/kevinzhow/PNChart.
What is kevinzhow/PNChart?
kevinzhow/PNChart (kevinzhow/PNChart) is a Objective-C project on GitHub. From the project's own README: A simple and beautiful chart lib used in Piner and CoinsMan for iOS
What license does kevinzhow/PNChart use?
kevinzhow/PNChart is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about kevinzhow/PNChart?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/kevinzhow/PNChart is the definitive source.
Read full README in the tab above.
Curious whether PNChart is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about PNChart.