 import UIKit
 
 // MARK: - ScrollableGraphView
+@IBDesignable
 @objc public class ScrollableGraphView: UIScrollView, UIScrollViewDelegate, ScrollableGraphViewDrawingDelegate {
     
     // MARK: - Public Properties

        
        // Create all the GraphPoints which which are used for drawing.
        for i in 0 ..< data.count {
            let value = (shouldAnimateOnStartup) ? self.range.min : data[i]
            
            let position = calculatePosition(i, value: value)
            let point = GraphPoint(position: position)

    override public func layoutSubviews() {
        super.layoutSubviews()
        
        // while putting the view on the IB, we may get calls with frame too small
        // if frame height is too small we won't be able to calculate zeroYPosition
        // so make sure to proceed only if there is enough space
        if frame.height > topMargin + bottomMargin {
            updateUI()
        }
    }
    
    private func updateUI() {
