BarLineScatterCandleChartDataSet public class BarLineScatterCandleChartDataSet: ChartDataSet { // 高亮颜色 public var highlightColor = UIColor(red: 255.0/255.0, green: 187.0/255.0, blue: 115.0/255.0, alpha: 1.0) // 高亮宽度 public var highlightLineWidth = CGFloat(0.5) // 高亮虚线 public var highlightLineDashPhase = CGFloat(0.0) // 虚线长度集合 public var highlightLineDashLengths: [CGFloat]? // MARK: NSCopying public override func copyWithZone(zone: NSZone) -> AnyObject { var copy = super.copyWithZone(zone) as! BarLineScatterCandleChartDataSet copy.highlightColor = highlightColor copy.highlightLineWidth = highlightLineWidth copy.highlightLineDashPhase = highlightLineDashPhase copy.highlightLineDashLengths = highlightLineDashLengths return copy } } BarLineScatterCandleChartData public class BarLineScatterCandleChartData: ChartData { public override init() { super.init() } public override init(xVals: [String?]?, dataSets: [ChartDataSet]?) { super.init(xVals: xVals, dataSets: dataSets) } public override init(xVals: [NSObject]?, dataSets: [ChartDataSet]?) { super.init(xVals: xVals, dataSets: dataSets) } }