PNChart-Swift
PNChart(https://github.com/kevinzhow/PNChart) Swift Implementation
Installation
This isn't on CocoaPods yet, so to install, add this to your Podfile
pod 'PNChartSwift',:git => 'https://github.com/kevinzhow/PNChart-Swift.git'
PNChart(https://github.com/kevinzhow/PNChart) Swift Implementation
This isn't on CocoaPods yet, so to install, add this to your Podfile
pod 'PNChartSwift',:git => 'https://github.com/kevinzhow/PNChart-Swift.git'
A bit of a noob question, but I'm looking to use the PNChart-Swift library in a swift project I'm working on. Is there a trick to using is as a framework, or referencing it from an external project?
Hi, I get " no such module ~~" after following the instruction
First, I did write pod 'PNChartSwift',:git => 'https://github.com/kevinzhow/PNChart-Swift.git' to Podfile and pod install
And open project.xcworkspace
And I get " no such module ~~"
I think this cloning the wrong directory
I see only AppDelegate.swift, ViewController.swift and Support Files. I think this cloning 'kevinzhow/PNChart-Swift/PNChartSwift'
Please fix this, thank you.
Guys if you guys looking for this in swift Check this one https://github.com/PandaraWen/PDChart It works for Xcode beta 6 and it does work for Xcode 6 GM if you fix that ONE error let me know if you guys got it
In the PNChart readme (Objective C) it shows that there is functionality for circle, pie, and scatter charts as well as legends for your chart. When will this functionality be available in the Swift version of this project?
Hi,
I have added a framework target to simplify the installation, using the git submobule procedure described below:
cd
-ing into your top-level project directory, and entering the command git submodule add https://github.com/kevinzhow/PNChart-Swift
PNChart-Swift
folder, and drag PNChart-Swift.xcodeproj
into the file navigator of your app project.PNChart.framework
.+
button at the top left of the panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and add PNChart.framework
.Here all the changes:
If you prefer you can delete the PNChart-Swift target because is not necessary, but for now I preferred to keep it.
Hi! I'm using the demo app that's included on the repository but I'm having troubles showing the YLabels on the Bar Chart. The values are shown but they're all 0. Here's the code:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
var viewController:UIViewController = segue.destinationViewController as UIViewController
var ChartLabel:UILabel = UILabel(frame: CGRectMake(0, 90, 320.0, 30))
ChartLabel.textColor = PNGreenColor
ChartLabel.font = UIFont(name: "Avenir-Medium", size:23.0)
ChartLabel.textAlignment = NSTextAlignment.Center
// ////MasterViewController.swift:39:33: Cannot convert the expression's type 'String?' to type 'NSString' // switch segue.identifier as NSString { case "lineChart": //Add LineChart ChartLabel.text = "Line Chart"
like this tool so far, and plan on using it on one of my projects but now it won't compile on beta 5 when it worked on beta 4. Anyone else tried it? When I remove the PNChart files my project compiles and runs. It complained about adding override to init functions and after that now I get the error below. Referring to an argument in another function! store %swift.type* %T, %swift.type** %2 LLVM ERROR: Broken function found, compilation aborted! Command /Applications/Xcode6-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 I saw that in another post you were going to make some changes for beta 5, so maybe this will be fixed with that update. Thanks so much
Hi! I am trying to run the example app but i am getting this error:
diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
I understand i need to install cocoa pods, but i am unclear as to why if i am using swift?
Hi, first of all, thanks for library! I try to figure out how to set line chart to show labels correctly if there are many same values.
For example:
lineChart.xLabels = [
"27.3","28.3","29.3","30.3","31.3","1.","2.",
"3.","4.","5.","6.","7.","8.","9.",
"10.","11.","12.","13.","14.","15.","16.",
"17.","18.","19.","20.","21.","22.","23.",
"23.","24."
]
var data01Array: [CGFloat] = [
2, 4, 5, 3, 5, 2, 3,
1, 4, 2, 0, 5, 6, 4,
3, 4, 2, 1, 5, 0, 3,
2, 5, 4, 1, 3, 2, 4,
1, 5
]
produces line chart with same y labels with overflow:
There should be only 7 y labels 0, 1, 2, 3, 4, 5, 6.
Thanks for help.
Hi Kevin,
Noticed the PNChart-Swift repo doesn't include a license like the Objective C version does. Is it licensed under MIT license as well? Can you post the license right in the Swift repo?
Regards, OutsideRide
TEAChart Simple and intuitive iOS chart library, for Pomotodo app. Contribution graph, clock chart, and bar chart. Supports Storyboard and is fully ac
Swift Sunburst Diagram Sunburst diagram is a library written with SwiftUI to easily render diagrams given a tree of objects. Similar to ring chart, su
ContributionChart A contribution chart (aka. heatmap, GitHub-like) library for iOS, macOS, and watchOS. 100% written in SwiftUI. It Supports Custom Bl
JYRadarChart an open source iOS Radar Chart implementation ##Screenshots Requirements Xcode 5 or higher iOS 5.0 or higher ARC CoreGraphics.framework D
Comparison of Chart Libraries for SwiftUI Read the entire blog post including images on jannikarndt.de! I want to add charts to my SwiftUI iOS App, Ze
XYPieChart XYPieChart is an simple and easy-to-use pie chart for iOS app. It started from a Potion Project which needs an animated pie graph without i
EGPieChart Installation EGPieChart is available through CocoaPods. To install it, simply add the following line to your Podfile: pod 'EGPieChart' manu
DDSpiderChart Easy to use Spider (Radar) Chart library for iOS written in Swift. Requirements iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ Xcode
Swift LineChart Usage var lineChart = LineChart() lineChart.addLine([3, 4, 9, 11, 13, 15]) Features Super simple Highly customizable Auto scaling Touc
#EChart A highly extendable, easy to use chart with event handling, animation supported. ##Test How To Use Download and run the EChartDemo project is
Chart de lune ?? Using Swift Charts and Voiceover Chart Descriptor to compose music. ?? Image source: https://hadikarimi.com/portfolio/claude-debussy-
XJYChart XJYChart - A High-performance, Elegant, Easy-to-integrate Charting Framework. The Best iOS Objc Charts. chart more beautiful support chart sc
FSLineChart A line chart library for iOS. Screenshots Installing FSLineChart Add the contents of the FSLineChart project to your directory or simply a
Core Charts | Basic Chart Library for iOS HCoreBarChart VCoreBarChart Requirements Installation Usage Appearance Customization Getting Started You nee
###Licenses (The MIT License) Copyright ©2012 zhiyu zheng all rights reserved. Permission is hereby granted, free of charge, to any person obtaining a
MSBBarChart MSBBarChart is an easy to use bar chart library for iOS. Usage if you want to hide label above bar barChart.setOptions([.isHiddenLabelAbov
TKRadarChart A customizable radar chart in Swift Requirements iOS 8.0+ Xcode 9.0 Swift 4.0 Installation CocoaPods You can use CocoaPods to install TKR
FlowerChart - custom chart written in Swift Fully vector flower-shaped chart written in Swift Flower-shaped chart written in Swift, this repo is a sam
FlowerChart - custom chart written in Swift Fully vector flower-shaped chart written in Swift Flower-shaped chart written in Swift, this repo is a sam