An amazing project that generates micro reports from tournament results
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1004 B

//
// PieChart.swift
// TournamentStats
//
// Created by Laurent Morvillier on 06/08/2019.
// Copyright © 2019 Stax River. All rights reserved.
//
import Foundation
import Charts
class PieChart : PieChartView {
override init(frame: CGRect) {
super.init(frame: frame)
self.holeColor = UIColor.clear
self.usePercentValuesEnabled = true
self.legend.textColor = UIColor.white
self.legend.font = UIFont.systemFont(ofSize: 16.0)
self.legend.orientation = .vertical
// self.legend.form = .square
// self.legend.neededHeight = 320.0
// self.legend.neededWidth = 300.0
self.legend.maxSizePercent = 0.2
self.legend.verticalAlignment = .center
// self.legend.horizontalAlignment = .left
self.holeRadiusPercent = 0.2
self.drawEntryLabelsEnabled = false
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}