override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let calendar = TKCalendar(frame: CGRectMake(1000, 100, 800, 800))
self.view.addSubview(calendar)
let chart = TKChart(frame: CGRectMake(100, 100, 800, 800))
chart.legend().hidden = false
var items = [TKChartDataPoint]()
items.append(TKChartDataPoint(name: "Apple", value: 17.9))
items.append(TKChartDataPoint(name: "Samsung", value: 24.4))
items.append(TKChartDataPoint(name: "Lenovo", value: 6.5))
items.append(TKChartDataPoint(name: "Huawei", value: 5.1))
items.append(TKChartDataPoint(name: "LG", value: 4.5))
items.append(TKChartDataPoint(name: "Xiaomi", value: 4.5))
items.append(TKChartDataPoint(name: "Others", value: 37.2))
let series = TKChartPieSeries(items: items)
series.selectionMode = TKChartSeriesSelectionMode.DataPoint
series.selectionAngle = -M_PI_2
series.expandRadius = 1.2
series.style.pointLabelStyle.textHidden = false
chart.addSeries(series)
self.view.addSubview(chart)
chart.select(TKChartSelectionInfo(series: series, dataPointIndex: 0))
}
Tsvetan is the Team Leader of the UI for iOS team. He has been part of Telerik since 2006, when he joined the company as regular developer in the WinForms team. Tsvetan made his way through all developer postions over the past few years. His addiction to the cutting edge technologies, together with the passion to develop outstanding products are what drive him forward. In his spare time Tsvetan loves biking, hiking and snowboarding. You can find Tsvetan on Twitter @tzraikov, and LinkedIn.