<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ouyang.leyan@hotmail.com" title="Leyan <ouyang.leyan@hotmail.com>"> <span class="fn">Leyan</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pie chart data rounding error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134224">bug 134224</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>ouyang.leyan@hotmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pie chart data rounding error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134224#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pie chart data rounding error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134224">bug 134224</a>
              from <span class="vcard"><a class="email" href="mailto:ouyang.leyan@hotmail.com" title="Leyan <ouyang.leyan@hotmail.com>"> <span class="fn">Leyan</span></a>
</span></b>
        <pre>The rounding of each percentage is correct, the fact that the sum is 101 is
just an artifact of the insufficient precision displayed. So the question is
whether it is better to have less precise individual values and a nicer total
or whether the current behavior should be kept?

I played a bit with it in Excel, this is only applied for integer percentage
values, not when there is additional precision displayed. A pie chart with
three identical parts will sum to 100% when the display format is 0% but 99.9%
when it is 0.0%. 

For these integer percentage values, the algorithm used seems to be to change
the displayed value by 1 for as many labels as necessary, starting with the
labels closest to 0.5. 

This simple algorithm can lead to pie charts displaying different percentages
even if the underlying value is the same, which is not great in my opinion. For
example, with a pie chart with 3 identical parts, the percentages displayed
will be 34%, 33%, 33%.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>