title: How Can I Hide a Pie Chart's Slice in HighCharts Without Removing It From the Legend?
body: <p>I've looked everywhere for an answer to this, but I can't seem to figure out what I'm doing wrong here.</p>
  
  <p>I just want to be able to start a pie chart, using HighCharts, with certain slices hidden (as if they had been "clicked" off in the legend).</p>
  
  <p>I've done this in HighStock and it was a simple matter of:</p>
  
  <pre><code>var chart = $("#overallChart").highcharts(); //$("#overallChart") is the div where my HighStock chart is rendered to.
  var series = chart.series;
  
  //*****SET DEFAULT STARTING LINES*****//
  for (var s = 0; s &lt; series.length; s++) {
      if (s != 1 &amp;&amp; s != 2 &amp;&amp; s != 3 &amp;&amp; s != 4) {
          series[s].hide();
      }
  }
  //*****set default starting lines*****//
  </code></pre>
  
  <p>And it works, perfectly.</p>
  
  <p>The problem is, when I try to do this in a highcharts "pie" chart, it doesn't work (doesn't error or anything, simply doesn't work).</p>
  
  <p>I assumed it worked the same way as above, since the documentation shows the same <code>hide()</code> method (as well as the explanation).  <a href="http://api.highcharts.com/highcharts#Series.hide" rel="nofollow">Highcharts API Reference</a></p>
  
  <p>Here's my code for the pie chart:</p>
  
  <pre><code>var pieChart = $("#overallPie").highcharts(); //$("#overallPie") is the div where my Highcharts chart is rendered to.
  var pieSeries = pieChart.series;
  
  //*****SET DEFAULT STARTING SLICES*****//
  for (var p = 0; p &lt; pieSeries.length; p++) {
      if (p != 0 &amp;&amp; p != 1) {
          pieSeries[p].hide();
      }
  }
  //*****set default starting slices*****//
  </code></pre>
  
  <p>I guess you have to do this differently in a pie chart? I've seen somewhere that you can redraw the pie chart, but is this really necessary?</p>