<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:andreas.heinisch@yahoo.de" title="Andreas Heinisch <andreas.heinisch@yahoo.de>"> <span class="fn">Andreas Heinisch</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Chart produces incorrect graph w/ some negative points when using large positive values in source cells"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=110993">bug 110993</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;">Assignee</td>
           <td>andreas.heinisch@yahoo.de
           </td>
           <td>libreoffice-bugs@lists.freedesktop.org
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>ASSIGNED
           </td>
           <td>NEW
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Chart produces incorrect graph w/ some negative points when using large positive values in source cells"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=110993#c22">Comment # 22</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Chart produces incorrect graph w/ some negative points when using large positive values in source cells"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=110993">bug 110993</a>
              from <span class="vcard"><a class="email" href="mailto:andreas.heinisch@yahoo.de" title="Andreas Heinisch <andreas.heinisch@yahoo.de>"> <span class="fn">Andreas Heinisch</span></a>
</span></b>
        <pre>After rechecking the calculation, I committed a patch to gerrit in order to
correct a small error in the spline calculation. However, this does not solve
the problem of this bug report.

The calculation of the spline should be correct, but the autoclipping to the
chart does not work. I tried to recalc the min and max values for the chart in
<a href="https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/AreaChart.cxx?r=4f6931d6#368">https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/AreaChart.cxx?r=4f6931d6#368</a>
using:

std::vector< ExplicitScaleData > aScales( m_pPosHelper->getScales());
aScales[1].Minimum = *(std::min_element( aPoly.SequenceY[0].begin(),
aPoly.SequenceY[0].end()));
aScales[1].Maximum = *(std::max_element(aPoly.SequenceY[0].begin(),
aPoly.SequenceY[0].end()));
m_pPosHelper->setScales(aScales, m_pPosHelper->isSwapXAndY());

So the real bug here is that the automatic scaling of charts using cubic
splines does not work. Unfortunately, I don't understand enough in order to
solve this issue, but maybe someone with more insight in the chart creation
process may continue.</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>