123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // ScatterChartData.swift
- // Charts
- //
- // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda
- // A port of MPAndroidChart for iOS
- // Licensed under Apache License 2.0
- //
- // https://github.com/danielgindi/Charts
- //
- import Foundation
- import CoreGraphics
- open class ScatterChartData: BarLineScatterCandleBubbleChartData
- {
- public required init()
- {
- super.init()
- }
-
- public override init(dataSets: [ChartDataSetProtocol])
- {
- super.init(dataSets: dataSets)
- }
- public required init(arrayLiteral elements: ChartDataSetProtocol...)
- {
- super.init(dataSets: elements)
- }
-
- /// - Returns: The maximum shape-size across all DataSets.
- @objc open func getGreatestShapeSize() -> CGFloat
- {
- return (_dataSets as? [ScatterChartDataSetProtocol])?
- .max { $0.scatterShapeSize < $1.scatterShapeSize }?
- .scatterShapeSize ?? 0
- }
- }
|