A simple and beautiful chart lib used in Piner and CoinsMan for iOS(https://github.com/kevinzhow/PNChart) Swift Implementation

Related tags

Charts PNChart-Swift
Overview

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'
Comments
  • How can I use this library from another project?

    How can I use this library from another project?

    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?

    opened by mbifulco 11
  • After following the readme instruction

    After following the readme instruction "no such module PNChartSwift"

    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.

    opened by hanachan1026 5
  • IT WORKS

    IT WORKS

    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

    opened by kvnbautista 5
  • Support for Legends and Circle/Pie/Scatter charts

    Support for Legends and Circle/Pie/Scatter charts

    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?

    opened by jerenmb 4
  • Added PNChart.Framework

    Added PNChart.Framework

    Hi,

    I have added a framework target to simplify the installation, using the git submobule procedure described below:

    1. Add PNChart-Swift as a submodule by opening the Terminal, cd-ing into your top-level project directory, and entering the command git submodule add https://github.com/kevinzhow/PNChart-Swift
    2. Open the PNChart-Swift folder, and drag PNChart-Swift.xcodeproj into the file navigator of your app project.
    3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
    4. Ensure that the deployment target of PNChart.framework matches that of the application target.
    5. In the tab bar at the top of that window, open the "Build Phases" panel.
    6. Expand the "Target Dependencies" group, and add PNChart.framework.
    7. Click on the + 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:

    1. Added the Framework Target
    2. Added all the compiled sourced in the Framework
    3. Changed the visibility to public for framework use for variables and necessary functions

    If you prefer you can delete the PNChart-Swift target because is not necessary, but for now I preferred to keep it.

    opened by PGLongo 4
  • show Y labels in bar chart

    show Y labels in bar chart

    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: captura de pantalla 2015-02-23 a las 15 31 59

    opened by acroventus 3
  • XCODE 6 GM issue

    XCODE 6 GM issue

    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"

    opened by DirkLXX 3
  • unable to compile in Swift beta 5

    unable to compile in Swift beta 5

    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

    opened by pedrozaj 3
  • Unable to run the ExampleApp

    Unable to run the ExampleApp

    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?

    opened by MariamNers 2
  • labels density

    labels density

    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:

    labels

    There should be only 7 y labels 0, 1, 2, 3, 4, 5, 6.

    Thanks for help.

    opened by eriktelepovsky 2
  • PNChart-Swift Licence

    PNChart-Swift Licence

    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

    opened by outsideride 2
Owner
Kevin
Code Design and Crafts
Kevin
Simple and intuitive iOS chart library. Contribution graph, clock chart, and bar chart.

TEAChart Simple and intuitive iOS chart library, for Pomotodo app. Contribution graph, clock chart, and bar chart. Supports Storyboard and is fully ac

柳东原 · Dongyuan Liu 1.2k Nov 29, 2022
SwiftUI library to easily render diagrams given a tree of objects. Similar to ring chart, sunburst chart, multilevel pie chart.

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

Ludovic Landry 494 Dec 19, 2022
A SwiftUI Contribution Chart (GitHub-like) implementation package

ContributionChart A contribution chart (aka. heatmap, GitHub-like) library for iOS, macOS, and watchOS. 100% written in SwiftUI. It Supports Custom Bl

null 41 Dec 27, 2022
an iOS open source Radar Chart implementation

JYRadarChart an open source iOS Radar Chart implementation ##Screenshots Requirements Xcode 5 or higher iOS 5.0 or higher ARC CoreGraphics.framework D

Johnny Wu 416 Dec 31, 2022
Demo-implementation of 5 different Chart Libraries in SwiftUI

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

Jannik Arndt 73 Oct 12, 2022
A simple and animated Pie Chart for your iOS app.

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

XY Feng 1.7k Sep 6, 2022
A simple pie chart for iOS.

EGPieChart Installation EGPieChart is available through CocoaPods. To install it, simply add the following line to your Podfile: pod 'EGPieChart' manu

Ethan Guan 3 Nov 29, 2021
Easy to use Spider (Radar) Chart library for iOS written in Swift.

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

Deniz Adalar 82 Nov 14, 2022
Line Chart library for iOS written in Swift

Swift LineChart Usage var lineChart = LineChart() lineChart.addLine([3, 4, 9, 11, 13, 15]) Features Super simple Highly customizable Auto scaling Touc

Mirco Zeiss 601 Nov 15, 2022
iOS/iPhone/iPad Chart, Graph. Event handling and animation supported.

#EChart A highly extendable, easy to use chart with event handling, animation supported. ##Test How To Use Download and run the EChartDemo project is

Scott Zhu 646 Dec 27, 2022
Using Swift Charts and Voiceover Chart Descriptor to compose music. 🤯

Chart de lune ?? Using Swift Charts and Voiceover Chart Descriptor to compose music. ?? Image source: https://hadikarimi.com/portfolio/claude-debussy-

An Trinh 31 Nov 21, 2022
iOS Chart. Support animation, click, scroll, area highlight.

XJYChart XJYChart - A High-performance, Elegant, Easy-to-integrate Charting Framework. The Best iOS Objc Charts. chart more beautiful support chart sc

junyixie 868 Nov 16, 2022
FSLineChart A line chart library for iOS.

FSLineChart A line chart library for iOS. Screenshots Installing FSLineChart Add the contents of the FSLineChart project to your directory or simply a

Arthur 856 Nov 24, 2022
Core Charts | Basic Scrollable Chart Library for iOS

Core Charts | Basic Chart Library for iOS HCoreBarChart VCoreBarChart Requirements Installation Usage Appearance Customization Getting Started You nee

Çağrı ÇOLAK 71 Nov 17, 2022
candlestick chart for ios

###Licenses (The MIT License) Copyright ©2012 zhiyu zheng all rights reserved. Permission is hereby granted, free of charge, to any person obtaining a

ZhiYu 962 Oct 17, 2022
MSBBarChart is an easy to use bar chart library for iOS

MSBBarChart MSBBarChart is an easy to use bar chart library for iOS. Usage if you want to hide label above bar barChart.setOptions([.isHiddenLabelAbov

misyobun 45 May 3, 2022
TKRadarChart - A customizable radar chart in Swift

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

TBXark 203 Dec 28, 2022
Flower-like chart written in Swift

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

Alexander Telegin 15 Jun 9, 2021
FlowerChart - custom chart written in Swift

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

Alexander Telegin 15 Jun 9, 2021