 class StatsView: UIView {
     internal var objects:Array<Double>?
     private var intersectDistance:Int = 2
+    private var catmullAlpha:CGFloat = 0.3
     private var useCatmullRom:Bool = true
     // MARK: - Constants
     private let margin:CGFloat = 20.0

                        let d2 = p2.deltaTo(p1).length()
                        let d3 = p3.deltaTo(p2).length()

                        var b1 = p2.multiplyBy(pow(d1, 2 * alpha))
                        b1 = b1.deltaTo(p0.multiplyBy(pow(d2, 2 * alpha)))
                        b1 = b1.addTo(p1.multiplyBy(2 * pow(d1, 2 * alpha) + 3 * pow(d1, alpha) * pow(d2, alpha) + pow(d2, 2 * alpha)))
                        b1 = b1.multiplyBy(1.0 / (3 * pow(d1, alpha) * (pow(d1, alpha) + pow(d2, alpha))))

                        var b2 = p1.multiplyBy(pow(d3, 2 * alpha))
                        b2 = b2.deltaTo(p3.multiplyBy(pow(d2, 2 * alpha)))
                        b2 = b2.addTo(p2.multiplyBy(2 * pow(d3, 2 * alpha) + 3 * pow(d3, alpha) * pow(d2, alpha) + pow(d2, 2 * alpha)))
                        b2 = b2.multiplyBy(1.0 / (3 * pow(d3, alpha) * (pow(d3, alpha) + pow(d2, alpha))))

                        if i == startIndex {
                            graphPath.moveToPoint(p0)

        }
    }

    internal func setUpGraphView(statisticsItems:Array<Double>, intersectDistance:Int, catmullRom:Bool, catmullAlpha:CGFloat = 0.30) {
        if statisticsItems.count <= 1 {
            self.objects = [0.0, 0.0]
            self.intersectDistance = 1
