| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // LineScatterCandleRadarChartDataSet.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
- open class LineScatterCandleRadarChartDataSet: BarLineScatterCandleBubbleChartDataSet, LineScatterCandleRadarChartDataSetProtocol
- {
- // MARK: - Data functions and accessors
-
- // MARK: - Styling functions and accessors
-
- /// Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn.
- open var drawHorizontalHighlightIndicatorEnabled = true
-
- /// Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn.
- open var drawVerticalHighlightIndicatorEnabled = true
-
- /// `true` if horizontal highlight indicator lines are enabled (drawn)
- open var isHorizontalHighlightIndicatorEnabled: Bool { return drawHorizontalHighlightIndicatorEnabled }
-
- /// `true` if vertical highlight indicator lines are enabled (drawn)
- open var isVerticalHighlightIndicatorEnabled: Bool { return drawVerticalHighlightIndicatorEnabled }
-
- /// Enables / disables both vertical and horizontal highlight-indicators.
- /// :param: enabled
- open func setDrawHighlightIndicators(_ enabled: Bool)
- {
- drawHorizontalHighlightIndicatorEnabled = enabled
- drawVerticalHighlightIndicatorEnabled = enabled
- }
-
- // MARK: NSCopying
-
- open override func copy(with zone: NSZone? = nil) -> Any
- {
- let copy = super.copy(with: zone) as! LineScatterCandleRadarChartDataSet
- copy.drawHorizontalHighlightIndicatorEnabled = drawHorizontalHighlightIndicatorEnabled
- copy.drawVerticalHighlightIndicatorEnabled = drawVerticalHighlightIndicatorEnabled
- return copy
- }
-
- }
|