<p>Relevant issue: <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="533652450" data-permission-text="Issue title is private" data-url="https://github.com/bisq-network/bisq/issues/3753" data-hovercard-type="issue" data-hovercard-url="/bisq-network/bisq/issues/3753/hovercard" href="https://github.com/bisq-network/bisq/issues/3753">#3753</a></p>
<p>These commits are about improving readability of the daily burnt BSQ chart. It is done by introducing a 'Zoom to inliers' toggle, which when active zooms in on inliers, and by introducing a moving average. The zooming feature is automatic and should be at least somewhat robust to new trends. The moving average contextualizes the large peaks and gullies and generally improves interpretability of this noisy series. Also, the charts' Y axes are set to include 0, most notably in the monthly issued BSQ chart.</p>
<p>I have provided details in the commit messages.</p>
<p>The numerous changes to the SupplyView class are contained in a single commit, which I realise is not comfortable to review. Ideally I would have refactored in a separate commit, but I wasn't sure how I want to refactor until many of the changes were already implemented.</p>
<p>Below are screenshots illustrating changes to the daily burnt BSQ chart:</p>
<p>This is before changes:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/2715476/72210393-56ef1e80-34c3-11ea-95da-a09db5df1ede.png"><img src="https://user-images.githubusercontent.com/2715476/72210393-56ef1e80-34c3-11ea-95da-a09db5df1ede.png" alt="bsq burnt before changes" style="max-width:100%;"></a><br>
This is a GIF slideshow (2 frames) of the zoom toggle being toggled in the new chart:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/2715476/72210450-6b7fe680-34c4-11ea-8d52-bb7f124dd579.gif"><img src="https://user-images.githubusercontent.com/2715476/72210450-6b7fe680-34c4-11ea-8d52-bb7f124dd579.gif" alt="bsq burnt after changes animation" style="max-width:100%;"></a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/3890'>https://github.com/bisq-network/bisq/pull/3890</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Provide an online standard deviation algorithm</li>
  <li>Provide a way to zoom a chart axis to inliers</li>
  <li>Provide an online moving average algorithm</li>
  <li>Improve readability of the daily burnt BSQ chart</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3890/files#diff-0">common/src/main/java/bisq/common/util/DoubleSummaryStatisticsWithStdDev.java</a>
    (87)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3890/files#diff-1">core/src/main/resources/i18n/displayStrings.properties</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3890/files#diff-2">desktop/src/main/java/bisq/desktop/bisq.css</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3890/files#diff-3">desktop/src/main/java/bisq/desktop/main/dao/economy/supply/SupplyView.java</a>
    (323)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3890/files#diff-4">desktop/src/main/java/bisq/desktop/util/AxisInlierUtils.java</a>
    (323)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3890/files#diff-5">desktop/src/main/java/bisq/desktop/util/MovingAverageUtils.java</a>
    (136)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3890/files#diff-6">desktop/src/test/java/bisq/desktop/util/MovingAverageUtilsTest.java</a>
    (172)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/3890.patch'>https://github.com/bisq-network/bisq/pull/3890.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/3890.diff'>https://github.com/bisq-network/bisq/pull/3890.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/3890?email_source=notifications&email_token=AJFFTNRC4BMZLDTIV5CSUG3Q5IX7HA5CNFSM4KFT7QP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFREQRA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNUZVGODABBRYOCSJHDQ5IX7HANCNFSM4KFT7QPQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNTAACVZ27TYDC4OGADQ5IX7HA5CNFSM4KFT7QP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFREQRA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/3890?email_source=notifications\u0026email_token=AJFFTNRC4BMZLDTIV5CSUG3Q5IX7HA5CNFSM4KFT7QP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFREQRA",
"url": "https://github.com/bisq-network/bisq/pull/3890?email_source=notifications\u0026email_token=AJFFTNRC4BMZLDTIV5CSUG3Q5IX7HA5CNFSM4KFT7QP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFREQRA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>