MURadarGraph

@IBDesignable
open class MURadarGraph : MUNibView

Class that provide radar graph with multiple charts data.

  • Define the inset of the background and chart

    Declaration

    Swift

    @IBInspectable
    open dynamic var viewInset: CGFloat { get set }
  • Define the style for each background line from center to outside

    Declaration

    Swift

    @objc
    open dynamic var backgroundLines: [MURadarGraphBackgroundLine] { get set }
  • Define the width of the spoke line

    Declaration

    Swift

    @IBInspectable
    open dynamic var spokeLineThickness: CGFloat { get set }
  • Define the color of the spoke line

    Declaration

    Swift

    @IBInspectable
    open dynamic var spokeLineColor: UIColor { get set }
  • Define the color of the spoke line

    Declaration

    Swift

    @IBInspectable
    open dynamic var spokeTitleColor: UIColor { get set }
  • Define the painted segment and unpainted segment, and so on

    How to use:

    • []: The line will be continue
    • [10.0]: The dash and the space will have the same size of 10 pixels
    • [10.0, 5.0]: The width’s dash will be 10 pixels and the width’s space will be 5 pixels
    • [10.0, 5.0, 2.0, 5.0]: That will create a line with dash and dot spacing with 5 pixels

    Declaration

    Swift

    @objc
    open dynamic var spokeLinePattern: [CGFloat] { get set }
  • Define the name of each spoke

    Declaration

    Swift

    @objc
    open dynamic var spokeTitles: [String] { get set }
  • Define the font of each spoke title

    Declaration

    Swift

    @objc
    open dynamic var spokeTitleFont: UIFont { get set }
  • Define the spokes title horizontal offset

    Declaration

    Swift

    @objc
    open dynamic var spokeTitleHorizontalOffset: CGFloat { get set }
  • Define the spokes title vertical offset

    Declaration

    Swift

    @objc
    open dynamic var spokeTitleVerticalOffset: CGFloat { get set }
  • Define the appearance of the bkg

    Declaration

    Swift

    open var backgroundStyle: MURadarGraphStyle { get set }
  • Define the appearance of the bkg (using Int value)

    Declaration

    Swift

    @IBInspectable
    open dynamic var backgroundStyleInt: Int { get set }
  • Define the width of the bkg line

    Declaration

    Swift

    @IBInspectable
    open dynamic var dotRadius: CGFloat { get set }
  • Define the width of the bkg line

    Declaration

    Swift

    @IBInspectable
    open dynamic var dotLineThickness: CGFloat { get set }
  • Define the color of the bkg line

    Declaration

    Swift

    @IBInspectable
    open dynamic var dotLineColor: UIColor { get set }
  • Define the color of the bkg line

    Declaration

    Swift

    @IBInspectable
    open dynamic var dotFillColor: UIColor { get set }
  • Define the border width of the chart

    Declaration

    Swift

    @IBInspectable
    open dynamic var chartBorderWidth: CGFloat { get set }