 public class Chart {
 
     /// The view that the chart is drawn in
-    public let view: ChartBaseView
-
+    public let view: ChartView
+    
     /// The layers of the chart that are drawn in the view
     private let layers: [ChartLayer]
 


     - returns: The new Chart
     */
    public init(view: ChartBaseView, layers: [ChartLayer]) {

        self.layers = layers
        
        self.view = view

}

/// A UIView subclass for drawing charts
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?
    
