BarChartDataSetProtocol.swift 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // BarChartDataSetProtocol.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. @objc
  14. public protocol BarChartDataSetProtocol: BarLineScatterCandleBubbleChartDataSetProtocol
  15. {
  16. // MARK: - Data functions and accessors
  17. // MARK: - Styling functions and accessors
  18. /// `true` if this DataSet is stacked (stacksize > 1) or not.
  19. var isStacked: Bool { get }
  20. /// The maximum number of bars that can be stacked upon another in this DataSet.
  21. var stackSize: Int { get }
  22. /// the color used for drawing the bar-shadows. The bar shadows is a surface behind the bar that indicates the maximum value
  23. var barShadowColor: NSUIColor { get set }
  24. /// the width used for drawing borders around the bars. If borderWidth == 0, no border will be drawn.
  25. var barBorderWidth : CGFloat { get set }
  26. /// the color drawing borders around the bars.
  27. var barBorderColor: NSUIColor { get set }
  28. /// the alpha value (transparency) that is used for drawing the highlight indicator bar. min = 0.0 (fully transparent), max = 1.0 (fully opaque)
  29. var highlightAlpha: CGFloat { get set }
  30. /// array of labels used to describe the different values of the stacked bars
  31. var stackLabels: [String] { get set }
  32. }