Latest 0.0.7
Homepage https://github.com/Taillook/SimpleGraphs
License MIT
Platforms ios 10.2, requires ARC
Authors

SimpleGraphs Swift3

Can Draw a Graph

Usage

FirstViewController.swift

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var graph: LineGraph!

    override func viewDidLoad() {
        super.viewDidLoad()

        graph.xData = ["a","b","c","d","e","f","g","h","i","j",
        "k","l","m","n","o","p","q","r","s","t","u","v","w","x",
        "y","z","A","B","C","D"]

        graph.yData = [0,10,20,30,20,10,5,5,5,5,1,2,3,4,5,6,7,8,9,10,20,21,22,
        23,24,25,26,27,28,29]
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

Latest podspec

{
    "name": "SimpleGraphs",
    "version": "0.0.7",
    "summary": "Draw a SimpleGraph.",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/Taillook/SimpleGraphs",
    "authors": {
        "Taillook": "Taillook.S[at]gmail.com"
    },
    "social_media_url": "http://twitter.com/Taillook",
    "source": {
        "git": "https://github.com/Taillook/SimpleGraphs.git",
        "tag": "0.0.7"
    },
    "platforms": {
        "ios": "10.2"
    },
    "requires_arc": true,
    "source_files": "SimpleGraphs/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This