         
         
         var dataSet : [ChartDataSet] = []
-        dataSet.append(PieChartDataSet(yVals: yVals1, label: "Results"))
-//        dataSet.sliceSpace = 2.0
-        
-        // add a lot of colors
-        
+        let dataPie = PieChartDataSet(yVals: yVals1, label: "Results")
+        dataPie.sliceSpace = 2.0
+        dataSet.append(dataPie)
+
+
         var colors : [UIColor] = []
         
         colors.appendContentsOf(ChartColorTemplates.vordiplom())

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("reuseIdentifierLabel", forIndexPath: indexPath)

        var chartView: PieChartView = cell.contentView.viewWithTag(99) as! PieChartView
        
        self.title = "Generated Charts";
        

        
        let data = PieChartData(xVals: xVals, dataSets: dataSet)
        
        let pFormatter: NSNumberFormatter = NSNumberFormatter()
        pFormatter.numberStyle = NSNumberFormatterStyle.PercentStyle
        pFormatter.maximumFractionDigits = 1
        pFormatter.multiplier = 1.0
        pFormatter.percentSymbol = " %"
        data.setValueFormatter(pFormatter)
        
        data.setValueTextColor(UIColor.blackColor())
