 }
 
 /// A UIView subclass for drawing charts
-public class ChartBaseView: UIView {
+public class ChartBaseView: ChartView {
+    
+    override public func drawRect(rect: CGRect) {
+        self.chart?.drawRect(rect)
+    }
+}
 
+public class ChartView: UIView {
+    
     /// The chart that will be drawn in this view
     weak var chart: Chart?
     

public class Chart {

    /// The view that the chart is drawn in
    public let view: ChartBaseView

    /// The layers of the chart that are drawn in the view
    private let layers: [ChartLayer]


    func sharedInit() {
        self.backgroundColor = UIColor.clearColor()
    }
}