SimpleGraphs 0.0.7

SimpleGraphs 0.0.7

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Shinichi Shikishima.



SimpleGraphs

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.
    }

}