<p><a class="user-mention" data-hovercard-user-id="170962" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ripcurlx">@ripcurlx</a> , an easy way to see that the graph is wrong is recognizing that sometimes there is a vertical lines showing the same Price for two or more Amount in BTC, which is mathematically impossible (except if the vertical line is in the "first/best" value).</p>
<p><a target="_blank" href="https://user-images.githubusercontent.com/14953828/40017573-268b76ce-5790-11e8-96ff-7468cab87d8e.png"><img src="https://user-images.githubusercontent.com/14953828/40017573-268b76ce-5790-11e8-96ff-7468cab87d8e.png" alt="screenshot_20180514_160149" style="max-width:100%;"></a></p>
<p>The Price col of the following table shows the correct values:</p>
<pre><code>  USD    BTC  cumsum(USD) cumsum(BTC)   Price
 353.12 0.040    353.12     0.0400    8828.0000
1070.73 0.125   1070.73     0.1650    8629.3939
1056.80 0.125   1056.80     0.2900    8553.9655
2119.60 0.250   2119.60     0.5400    8518.9815
1059.80 0.125   1059.80     0.6650    8511.3534
</code></pre>

<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-desktop/issues/1525#issuecomment-388927295">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtnaa5N9qE4BlXTeiLl2iyc-bMlgUks5tydUBgaJpZM4TtXcH">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtlqBmC_GumS4TwhVSoTwEbH4BSXOks5tydUBgaJpZM4TtXcH.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/bisq-network/bisq-desktop/issues/1525#issuecomment-388927295"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/bisq-desktop","title":"bisq-network/bisq-desktop","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/bisq-desktop"}},"updates":{"snippets":[{"icon":"PERSON","message":"@fedegrc in #1525: @ripcurlx , an easy way to see that the graph is wrong is recognizing that sometimes there is a vertical lines showing the same Price for two or more Amount in BTC, which is mathematically impossible (except if the vertical line is in the \"first/best\" value).\r\n\r\n![screenshot_20180514_160149](https://user-images.githubusercontent.com/14953828/40017573-268b76ce-5790-11e8-96ff-7468cab87d8e.png)\r\n\r\n\r\nThe Price col of the following table shows the correct values:\r\n\r\n```\r\n  USD    BTC  cumsum(USD) cumsum(BTC)   Price\r\n 353.12 0.040    353.12     0.0400    8828.0000\r\n1070.73 0.125   1070.73     0.1650    8629.3939\r\n1056.80 0.125   1056.80     0.2900    8553.9655\r\n2119.60 0.250   2119.60     0.5400    8518.9815\r\n1059.80 0.125   1059.80     0.6650    8511.3534\r\n```\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/bisq-network/bisq-desktop/issues/1525#issuecomment-388927295"}}}</script>
<script type="application/ld+json">{"@type":"MessageCard","@context":"http://schema.org/extensions","hideOriginalBody":"false","originator":"37567f93-e2a7-4e2a-ad37-a9160fc62647","title":"Re: [bisq-network/bisq-desktop] The \"Offer book\" graph is showing inconsistent information (#1525)","sections":[{"text":"","activityTitle":"**Federico GarcĂ­a**","activityImage":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","activitySubtitle":"@fedegrc","facts":[]}],"potentialAction":[{"name":"Add a comment","@type":"ActionCard","inputs":[{"isMultiLine":true,"@type":"TextInput","id":"IssueComment","isRequired":false}],"actions":[{"name":"Comment","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueComment\",\"repositoryFullName\":\"bisq-network/bisq-desktop\",\"issueId\":1525,\"IssueComment\":\"{{IssueComment.value}}\"}"}]},{"name":"Close issue","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueClose\",\"repositoryFullName\":\"bisq-network/bisq-desktop\",\"issueId\":1525}"},{"targets":[{"os":"default","uri":"https://github.com/bisq-network/bisq-desktop/issues/1525#issuecomment-388927295"}],"@type":"OpenUri","name":"View on GitHub"},{"name":"Unsubscribe","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"MuteNotification\",\"threadId\":330659591}"}],"themeColor":"26292E"}</script>