//// BarLineChartViewBase.swift// Charts//// Created by Daniel Cohen Gindi on 4/3/15.//// 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
#if!os(OSX)
import UIKit
#endif
/// Base-class of LineChart, BarChart, ScatterChart and CandleStickChart.publicclass BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartDataProvider, NSUIGestureRecognizerDelegate
{
最大可顯示數值計算
/// the maximum number of entries to which values will be drawn/// (entry numbers greater than this value will cause value-labels to disappear)## 最大可顯示數值計算internalvar _maxVisibleValueCount = 100
自動顯示比例
/// flag that indicates if auto scaling on the y axis is enabledprivatevar _autoScaleMinMaxEnabled = falseprivatevar _autoScaleLastLowestVisibleXIndex: Int!
privatevar _autoScaleLastHighestVisibleXIndex: Int!
/// the color for the background of the chart-drawing area (everything behind the grid lines).publicvar gridBackgroundColor = NSUIColor(red: 255.0/255.0, green: 55.0/255.0, blue: 55.0/255.0, alpha: 1.0)
/// flag indicating if the grid background should be drawn or notpublicvar drawGridBackgroundEnabled = false
網格框線開啟與否
/// Sets drawing the borders rectangle to true. If this is enabled, there is no point drawing the axis-lines of x- and y-axis.publicvar drawBordersEnabled = false
預留向內偏移量 minOffset 網內壓縮(留白)
/// Sets the minimum offset (padding) around the chart, defaults to 10publicvar minOffset = CGFloat(10.0)
轉換螢幕方向是否維持比例(預設:False)
/// Sets whether the chart should keep its position ( zoom / scroll) after a rotation (orientation change)/// **default**: falsepublicvar keepPositionOnRotation: Bool = false
/// the object representing the left y-axis//代表左軸的internalvar _leftAxis: ChartYAxis!
/// the object representing the right y-axis
internalvar _rightAxis: ChartYAxis!
internalvar _leftYAxisRenderer: ChartYAxisRenderer!
internalvar _rightYAxisRenderer: ChartYAxisRenderer!
internalvar _leftAxisTransformer: ChartTransformer!
internalvar _rightAxisTransformer: ChartTransformer!
internalvar _xAxisRenderer: ChartXAxisRenderer!
internalvar _tapGestureRecognizer: NSUITapGestureRecognizer!
internalvar _doubleTapGestureRecognizer: NSUITapGestureRecognizer!
#if !os(tvOS)
internalvar _pinchGestureRecognizer: NSUIPinchGestureRecognizer!
#endif
internalvar _panGestureRecognizer: NSUIPanGestureRecognizer!
Comments
Post a Comment