CorePlot in Swift can not call “numberForPlot”
问题 I am using CorePlot(https://github.com/core-plot/core-plot) in Swift. In order to make a pie chart on iOS, I wrote as below by translating Obj-C code to swift. I was able to view the graph title, but I could not plot a pie chart. As a result of looking at NSlog, I found that “numberForPlot” function was apparently not called. How should I rewrite this? My code looks like this: ViewController.swift import UIKit class ViewController: UIViewController, CPTPieChartDataSource, CPTPieChartDelegate{