GraphingApp 0.2.0

GraphingApp 0.2.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新版本2015年9月
SPM支持 SPM

Karry Oberes 维护。



  • 作者
  • Oberes, Karry Raia C.

GraphingApp

用法

对于 Objective C 前往您项目的构建设置中搜索 Packaging。在它下面您会找到 Defines Module,然后将其改为 Yes。然后在构建您的项目。

对于 Swift

import GraphingApp

柱状图

//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”)

线条图

//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”)

饼图

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”])

对于 Objective C

@import GraphingApp;

线条图

[[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”];

线条图

[[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”];

饼图

[[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”]];

安装

GraphingApp 通过 CocoaPods 可用。要安装它,只需将以下行添加到 Podfile:

pod "GraphingApp"

许可证

GraphingApp 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。