作者ushisantoasobu,源码Yashin,安装:
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 简单易使用。
2021-04-05 12:05:51
161KB
IOS源码
1