MUHistogram

@IBDesignable
open class MUHistogram : MUNibView

Class that act like a bar chart image generator with customizable options.

  • Describes the Bar’s color appearance while it shows

    Declaration

    Swift

    @IBInspectable
    open dynamic var barColor: UIColor { get set }
  • Define the border’s width

    Declaration

    Swift

    @IBInspectable
    open dynamic var borderWidth: CGFloat { get set }
  • Define the border’s color

    Declaration

    Swift

    @IBInspectable
    open dynamic var borderColor: UIColor { get set }
  • Define the corner radius

    Declaration

    Swift

    @IBInspectable
    open dynamic var cornerRadius: CGFloat { get set }
  • Define the inset of the background and chart

    Declaration

    Swift

    @IBInspectable
    open dynamic var contentHorizontalPadding: CGFloat { get set }
  • Define the inset of the background and chart

    Declaration

    Swift

    @IBInspectable
    open dynamic var contentVerticalPadding: CGFloat { get set }
  • Describe all the values being used to draw the histogram

    Declaration

    Swift

    open var values: [CGFloat] { get set }
  • Default setup to load the view from a xib file.

    Declaration

    Swift

    override open func xibSetup()
  • Lays out subviews.

    Declaration

    Swift

    override open func layoutSubviews()