title: php pchart pie chart problem with 0 value
body: <p>I have a problem with my pie chart when I have 0 values
  $MyData->addPoints(array(10,20,20,15,23),"Data");<br>
  This works fine and converts to percentages across a pie chart however if any of these values are 0 which could happen as I'm dealing with counts and these are really variables in my script) then everything screws up and the color of the legend don't correlate with the data values. Basically in the pie chart the color palette only assigns a value to non 0 points</p>
  
  <pre><code>10    $PieChart-&gt;setSliceColor(0,array("R"=&gt;48,"G"=&gt;199,"B"=&gt;13));
  20    $PieChart-&gt;setSliceColor(1,array("R"=&gt;246,"G"=&gt;2,"B"=&gt;8));
  20    $PieChart-&gt;setSliceColor(2,array("R"=&gt;233,"G"=&gt;215,"B"=&gt;59));  
  15    $PieChart-&gt;setSliceColor(3,array("R"=&gt;38,"G"=&gt;42,"B"=&gt;191));       
  23    $PieChart-&gt;setSliceColor(3,array("R"=&gt;38,"G"=&gt;42,"B"=&gt;191));       
  
  
  
  10    $PieChart-&gt;setSliceColor(0,array("R"=&gt;48,"G"=&gt;199,"B"=&gt;13));
  0     
  20    $PieChart-&gt;setSliceColor(1,array("R"=&gt;246,"G"=&gt;2,"B"=&gt;8));
  15    $PieChart-&gt;setSliceColor(2,array("R"=&gt;233,"G"=&gt;215,"B"=&gt;59));  
  23    $PieChart-&gt;setSliceColor(3,array("R"=&gt;38,"G"=&gt;42,"B"=&gt;191));       
       $PieChart-&gt;setSliceColor(3,array("R"=&gt;38,"G"=&gt;42,"B"=&gt;191));    
  </code></pre>
  
  <p>Is this a common problem?</p>