GraphingApp 0.2.0

GraphingApp 0.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2015
SPMSupports SPM

Maintained by Karry Oberes.



  • By
  • Oberes, Karry Raia C.

GraphingApp

Usage

For Objective C Go to Build Settings of your project and search for Packaging. Under it you would find Defines Module, then change it to Yes. Then build your project after.

For Swift

import GraphingApp

Bar Graph

//GraphingAppData.sharedInstance.setBarGraph([0.48, 2.0, 0.9, 1.68, 0.48], label: [“one”, “two”, “three”, “four”, “five”])
//GraphingAppData.sharedInstance.bckgrndImage = UIImage(named: “test”)

Line Graph

//GraphingAppData.sharedInstance.setLineGraph([0.36, 3.0, 0.28, 1.68, 0.72], label: [“one”, “two”, “three”, “four”, “five”])
//GraphingAppData.sharedInstance.bckgrndImage = UIImage(named: “sample”)

Pie Graph

GraphingAppData.sharedInstance.setPieGraph([0.48, 2.0, 0.9, 1.68, 0.48, 1.78, 0.78, 2.48], label: [“test”, “try”, “exam”, “part”, “go”, “nice”, “add”, “any”])

For Objective C

@import GraphingApp;

Line Graph

//[[GraphingAppData sharedInstance]setLineGraph:@[@0.48, @2.0, @0.9, @1.68, @0.48] label:@[@“one”, @“two”, @“three”, @“four”, @“five”]];
//[GraphingAppData sharedInstance].bckgrndImage = [UIImage imageNamed:@“sample”];

Line Graph

//[[GraphingAppData sharedInstance]setLineGraph:@[@0.36, @3.0, @0.28, @1.68, @0.72] label:@[@“one”, @“two”, @“three”, @“four”, @“five”]];
//[GraphingAppData sharedInstance].bckgrndImage = [UIImage imageNamed:@“sample”];

Pie Graph

[[GraphingAppData sharedInstance] setPieGraph:@[@0.48, @2.0, @0.9, @1.68, @0.48, @1.78, @0.78, @2.48] label:@[@“test”, @“try”, @“exam”, @“part”, @“go”, @“nice”, @“add”, @“any”]];

Installation

GraphingApp is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GraphingApp"

License

GraphingApp is available under the MIT license. See the LICENSE file for more info.