title: How to disable labels and lines from pie chart?
body: <p>actually I'm trying to remove the labels and the line which are leading to the labels. The app is in C# and I used OxyPlot to plot the piechart.</p>
  
  <p>Here is my code. As you can see all what I've tried doesn't helped me.</p>
  
  <p>Thanks for your help!</p>
  
  <pre><code>public class MyViewModel
  {
      public PlotModel MyModel { get; set; }
  
      public MyViewModel()
      {
  
          SingletonItem singletonItem = SingletonItem.Instance;
  
          PieSeries pieSeries = new PieSeries();
  
          pieSeries.Slices.Add(new PieSlice("Done", singletonItem.Done) {IsExploded = true, Fill = OxyColors.PaleVioletRed});
          pieSeries.Slices.Add(new PieSlice("Undone", singletonItem.Undone) {IsExploded = true});
  
          pieSeries.LabelField = "";
          pieSeries.TickDistance = 0;
          pieSeries.ValueField = "";
          MyModel = new PlotModel();
          MyModel.IsLegendVisible = false;
          MyModel.Series.Add(pieSeries);
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SS1Po.png" rel="nofollow noreferrer">Screenshot of the actually page</a></p>