         let text3Size = text3.size(attributes: attributes)
         let text4Size = text4.size(attributes: attributes)
 
-        let text1Rect = CGRect(
-            x: rect.maxX - text1Size.width,
-            y: rect.midY - text1Size.height/2,
-            width: text1Size.width,
-            height: text1Size.height)
-
-        let text2Rect = CGRect(
-            x: rect.midX - text2Size.width/2,
-            y: rect.maxY - text2Size.height,
-            width: text2Size.width,
-            height: text2Size.height)
-
-        let text3Rect = CGRect(
-            x: rect.minX,
-            y: rect.midY - text3Size.height/2,
-            width: text3Size.width,
-            height: text3Size.height)
-
-        let text4Rect = CGRect(
-            x: rect.midX - text4Size.width/2,
-            y: rect.minY,
-            width: text4Size.width,
-            height: text4Size.height)
+        let text1Rect = CGRect(x: rect.maxX - text1Size.width, y: rect.midY - text1Size.height/2,
+                               width: text1Size.width, height: text1Size.height)
+
+        let text2Rect = CGRect(x: rect.midX - text2Size.width/2, y: rect.maxY - text2Size.height,
+                               width: text2Size.width, height: text2Size.height)
+
+        let text3Rect = CGRect(x: rect.minX, y: rect.midY - text3Size.height/2,
+                               width: text3Size.width, height: text3Size.height)
+
+        let text4Rect = CGRect(x: rect.midX - text4Size.width/2, y: rect.minY,
+                               width: text4Size.width, height: text4Size.height)
 
         text1.draw(in: text1Rect, withAttributes: attributes)
         text2.draw(in: text2Rect, withAttributes: attributes)

        movingView?.isUserInteractionEnabled = false
        movingView?.translatesAutoresizingMaskIntoConstraints = false
        addSubview(movingView!)
        addConstraint(
            NSLayoutConstraint(item: movingView!, attribute: .width, relatedBy: .equal,
                               toItem: self, attribute: .width, multiplier: 1, constant: 0))

        addConstraint(
            NSLayoutConstraint(item: movingView!, attribute: .height, relatedBy: .equal,
                               toItem: self, attribute: .height, multiplier: 1, constant: 0))

        addConstraint(
            NSLayoutConstraint(item: movingView!, attribute: .centerX, relatedBy: .equal,
                               toItem: self, attribute: .centerX, multiplier: 1, constant: 0))

        addConstraint(
            NSLayoutConstraint(item: movingView!, attribute: .centerY, relatedBy: .equal,
                               toItem: self, attribute: .centerY, multiplier: 1, constant: 0))
    }

    override open func layoutSubviews() {

    @IBInspectable var selectedColor: UIColor = UIColor.blue
    @IBInspectable var dotColor: UIColor = UIColor.red
    @IBInspectable var connectorColor: UIColor = UIColor.yellow

    var circleRadius: CGFloat = 250
    var lineWidth: CGFloat = 1
