Yashin

加入收藏
已有 3 人收藏

介绍:
    安装:

    1、cocoapods:pod "Yashin"

    2、Carthage:github "ushisantoasobu/Yashin" and run carthage update

    

    系统要求:

    iOS 9.0 or later

    Xcode 7.2

    

    最简单的图:

    import UIKit

    import Yashin

    

    class SomeViewController: UIViewController {

     override func viewDidLoad() {

     super.viewDidLoad()

     let radarChart = Yashin(frame: self.view.frame)

     self.view.addSubview(radarChart)

     radarChart.set(

     ["shoot", "pass", "dribble", "speed", "power", "stamina", "mentality"],

     [([8,9,8,8,7,6,9], UIColor.greenColor().colorWithAlphaComponent(0.40))]

     )}}

    然后还可以实现多属性,多数据的图表展示形式,pod 简单易使用。

测试环境:
  [Code4App]编译测试
效果图:
  • iOS / iPhone / iPad 安装:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1、cocoapods:pod "Yashin"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;2、Carthage:github "ushisantoasobu/Yashin" and run  carthage update<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;系统要求:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;iOS 9.0 or later<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Xcode 7.2<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;最简单的图:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;import UIKit<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;import Yashin<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;class SomeViewController: UIViewController {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; override func viewDidLoad() {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        super.viewDidLoad()<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        let radarChart = Yashin(frame: self.view.frame)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        self.view.addSubview(radarChart)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        radarChart.set(<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;            ["shoot", "pass", "dribble", "speed", "power", "stamina", "mentality"],<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;            [([8,9,8,8,7,6,9], UIColor.greenColor().colorWithAlphaComponent(0.40))]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        )}}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;然后还可以实现多属性,多数据的图表展示形式,pod 简单易使用。
  • iOS / iPhone / iPad 安装:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1、cocoapods:pod "Yashin"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;2、Carthage:github "ushisantoasobu/Yashin" and run  carthage update<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;系统要求:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;iOS 9.0 or later<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Xcode 7.2<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;最简单的图:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;import UIKit<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;import Yashin<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;class SomeViewController: UIViewController {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; override func viewDidLoad() {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        super.viewDidLoad()<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        let radarChart = Yashin(frame: self.view.frame)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        self.view.addSubview(radarChart)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        radarChart.set(<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;            ["shoot", "pass", "dribble", "speed", "power", "stamina", "mentality"],<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;            [([8,9,8,8,7,6,9], UIColor.greenColor().colorWithAlphaComponent(0.40))]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;        )}}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;然后还可以实现多属性,多数据的图表展示形式,pod 简单易使用。
代码评论:
登录后方可评论

  
  • 暂无评论