MUBarGraph

@IBDesignable
open class MUBarGraph : MUNibView

Class that define a bar graph.

  • Define the top inset to avoid the indicator to be outside of the view.

    Declaration

    Swift

    @IBInspectable
    open dynamic var barTopInset: CGFloat { get set }
  • Define the width of the spoke line.

    Declaration

    Swift

    @IBInspectable
    open dynamic var barWidth: CGFloat { get set }
  • The maximum value of the bar.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorMultiplier: CGFloat { get set }
  • Specifies the indicator’s value format.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorFormat: String { get set }
  • Specifies the indicator’s value font.

    Declaration

    Swift

    @objc
    open dynamic var indicatorTextFont: UIFont { get set }
  • Specifies the indicator’s value color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorTextColor: UIColor { get set }
  • Specifies the indicator’s proportional width.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorWidth: CGFloat { get set }
  • Specifies the indicator’s color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var indicatorColor: UIColor { get set }
  • Specifies the title’s font.

    Declaration

    Swift

    @objc
    open dynamic var titleFont: UIFont { get set }
  • Specifies the title’s color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleColor: UIColor { get set }
  • Specifies the inset between title and bar graph.

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleTopInset: CGFloat { get set }
  • Specifies the inset between right values and bar graph.

    Declaration

    Swift

    @IBInspectable
    open dynamic var valueRightInset: CGFloat { get set }
  • Declaration

    Swift

    @IBInspectable
    open dynamic var lineColor: UIColor { get set }
  • Declaration

    Swift

    @IBInspectable
    open dynamic var lineWidth: CGFloat { get set }
  • Declaration

    Swift

    @objc
    open dynamic var values: [String] { get set }
  • Declaration

    Swift

    open var datas: [MUBarGraphData] { get set }
  • Lays out subviews.

    Declaration

    Swift

    override open func layoutSubviews()