| 123456789101112131415161718192021 |
- //
- // FillFormatter.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
- /// Protocol for providing a custom logic to where the filling line of a LineDataSet should end. This of course only works if setFillEnabled(...) is set to true.
- @objc(ChartFillFormatter)
- public protocol FillFormatter
- {
- /// - Returns: The vertical (y-axis) position where the filled-line of the LineDataSet should end.
- func getFillLinePosition(dataSet: LineChartDataSetProtocol, dataProvider: LineChartDataProvider) -> CGFloat
- }
|