LineScatterCandleRadarChartDataSet.swift 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // LineScatterCandleRadarChartDataSet.swift
  3. // Charts
  4. //
  5. // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda
  6. // A port of MPAndroidChart for iOS
  7. // Licensed under Apache License 2.0
  8. //
  9. // https://github.com/danielgindi/Charts
  10. //
  11. import Foundation
  12. open class LineScatterCandleRadarChartDataSet: BarLineScatterCandleBubbleChartDataSet, LineScatterCandleRadarChartDataSetProtocol
  13. {
  14. // MARK: - Data functions and accessors
  15. // MARK: - Styling functions and accessors
  16. /// Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn.
  17. open var drawHorizontalHighlightIndicatorEnabled = true
  18. /// Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn.
  19. open var drawVerticalHighlightIndicatorEnabled = true
  20. /// `true` if horizontal highlight indicator lines are enabled (drawn)
  21. open var isHorizontalHighlightIndicatorEnabled: Bool { return drawHorizontalHighlightIndicatorEnabled }
  22. /// `true` if vertical highlight indicator lines are enabled (drawn)
  23. open var isVerticalHighlightIndicatorEnabled: Bool { return drawVerticalHighlightIndicatorEnabled }
  24. /// Enables / disables both vertical and horizontal highlight-indicators.
  25. /// :param: enabled
  26. open func setDrawHighlightIndicators(_ enabled: Bool)
  27. {
  28. drawHorizontalHighlightIndicatorEnabled = enabled
  29. drawVerticalHighlightIndicatorEnabled = enabled
  30. }
  31. // MARK: NSCopying
  32. open override func copy(with zone: NSZone? = nil) -> Any
  33. {
  34. let copy = super.copy(with: zone) as! LineScatterCandleRadarChartDataSet
  35. copy.drawHorizontalHighlightIndicatorEnabled = drawHorizontalHighlightIndicatorEnabled
  36. copy.drawVerticalHighlightIndicatorEnabled = drawVerticalHighlightIndicatorEnabled
  37. return copy
  38. }
  39. }