RadarChartDataSet.swift 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // RadarChartDataSet.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. import CoreGraphics
  13. open class RadarChartDataSet: LineRadarChartDataSet, RadarChartDataSetProtocol
  14. {
  15. private func initialize()
  16. {
  17. self.valueFont = NSUIFont.systemFont(ofSize: 13.0)
  18. }
  19. public required init()
  20. {
  21. super.init()
  22. initialize()
  23. }
  24. public required override init(entries: [ChartDataEntry], label: String)
  25. {
  26. super.init(entries: entries, label: label)
  27. initialize()
  28. }
  29. // MARK: - Data functions and accessors
  30. // MARK: - Styling functions and accessors
  31. /// flag indicating whether highlight circle should be drawn or not
  32. /// **default**: false
  33. open var drawHighlightCircleEnabled: Bool = false
  34. /// `true` if highlight circle should be drawn, `false` ifnot
  35. open var isDrawHighlightCircleEnabled: Bool { return drawHighlightCircleEnabled }
  36. open var highlightCircleFillColor: NSUIColor? = NSUIColor.white
  37. /// The stroke color for highlight circle.
  38. /// If `nil`, the color of the dataset is taken.
  39. open var highlightCircleStrokeColor: NSUIColor?
  40. open var highlightCircleStrokeAlpha: CGFloat = 0.3
  41. open var highlightCircleInnerRadius: CGFloat = 3.0
  42. open var highlightCircleOuterRadius: CGFloat = 4.0
  43. open var highlightCircleStrokeWidth: CGFloat = 2.0
  44. }