title: Swift danielgindi/Charts - Pie Chart Slice Space Problem
body: <p>I'm trying to make a pie chart using the library <a href="https://github.com/danielgindi/Charts" rel="nofollow noreferrer">https://github.com/danielgindi/Charts</a>.</p>
  <p>When I tried to adjust the slice space, I saw that slice space is not the same everywhere. But I could not solve this problem.</p>
  <p><a href="https://i.stack.imgur.com/HVd8t.png" rel="nofollow noreferrer">image of the problem</a></p>
  <pre><code>import UIKit
  import Charts
  
  class ViewController: UIViewController {
  
  @IBOutlet private weak var pieView: PieChartView!
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
      setupPieChart()
      
  }
  
      func setupPieChart(){
          pieView.rotationAngle = 0
          pieView.rotationEnabled = false
          pieView.drawEntryLabelsEnabled = false
          pieView.drawSlicesUnderHoleEnabled = true
          pieView.drawEntryLabelsEnabled = false
          pieView.usePercentValuesEnabled = true
          pieView.legend.enabled = false
          
          var entries : [PieChartDataEntry] = Array()
          entries.append(PieChartDataEntry(value:  70))
          entries.append(PieChartDataEntry(value: 30))
          
          let dataSet = PieChartDataSet(entries: entries, label : &quot;&quot;)
  
          dataSet.sliceSpace = 10
          
          let x_pie_color = NSUIColor(hex: 0xEAE2F2)
          let c_pie_color = NSUIColor(hex: 0xA87EC9)
          let x_text_color = NSUIColor(hex: 0x4a0ca0)
          let c_text_color = NSUIColor(hex: 0xFFFFFF)
          
          dataSet.colors = [x_pie_color, c_pie_color]
          dataSet.valueColors =  [x_text_color, c_text_color]
          dataSet.drawValuesEnabled = true
          pieView.data = PieChartData(dataSet: dataSet)
  
      }
  </code></pre>
  <p>}</p>