     func segmentControlClick(sender:UISegmentedControl){
         switch sender.selectedSegmentIndex {
         case 0:
-            chartView?.image = UIImage.init(named: "chartWeek")
+            let weeks = ["1周", "2周", "3周", "4周", "5周", "6周"]
+            let unitsSold = [20.0, 4.0, 6.0, 3.0, 12.0, 16.0]
+            setChart(weeks, values: unitsSold)
         case 1:
-            chartView?.image = UIImage.init(named: "chartMonth")
+            let months = ["7月", "8月", "9月", "10月", "11月", "12月"]
+            let unitsSold = [100.0, 130.0, 80.0, 70.0, 160.0, 190.0]
+            setChart(months, values: unitsSold)
         case 2:
-            chartView?.image = UIImage.init(named: "chartYear")
+            let years = ["2012", "2013", "2014", "2015", "2016", "2017"]
+            let unitsSold = [0.0, 0.0, 0.0, 2000.0, 3120.0, 5160.0]
+            setChart(years, values: unitsSold)
         default:
-            chartView?.image = UIImage.init(named: "chartWeek")
+            let weeks = ["1周", "2周", "3周", "4周", "5周", "6周"]
+            let unitsSold = [20.0, 4.0, 6.0, 3.0, 12.0, 16.0]
+            setChart(weeks, values: unitsSold)
         }
     }
     

            }
        }
    }
}

    
    var feedbackModels:[FeedbackModel] = []
    
    let lineChart =  LineChartView()
    
        
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
