Linear and Logarithmic Display

1 Nov

Revision for “Linear and Logarithmic Display” created on December 30, 2015 @ 11:56:09 [Autosave]

Title
Linear and Logarithmic Display
Content
<h2>Customizing the Scale Display of Your Nightscout Graph</h2> With the <a href="/wiki/welcome/website-features/funnel-cake-0-8-features">Funnel Cake</a> 0.8.2 release, Nightscout users can now choose between three different views of the website graph: <span class="redText"><strong>logarithmic</strong></span> (<em>default</em>), <span class="redText"><strong>linear</strong></span>, and <span class="redText"><strong>logarithmic (dynamic)</strong></span>. Prior to this release, the Nightscout CGM Remote Monitor (e.g., a Nightscout site) used a <strong>logarithmic</strong> display. Many devices familiar to users, like the Dexcom receiver and the Dexcom apps, use a <strong>linear</strong> display. These terms refer to the scale of the data displayed along axes of the graph. For Nightscout, the scale viewing options <strong>change the display and plotting of data along the y axis of the graph</strong> (the right-hand side where the blood glucose value range is shown). On a chart with a linear scale, the tick marks along the graph are equidistant from one another. In a logarithmic display, the tick marks on the scale vary in range. (Mathematically speaking, tick marks on a linear scale represent the previous tick mark multiplied by some number.) If you want additional information about the differences in linear scale and logarithmic scale, this <a href="https://www.khanacademy.org/math/algebra2/logarithms-tutorial/logarithmic-scale-patterns/v/logarithmic-scale">video from the Khan Academy</a> offers a good overview. For Nightscout, you may find that the different displays offer different insight when blood glucose values are in different ranges. For example, the logarithmic display offers more information in low ranges. Note: both <span class="redText">linear</span> and <span class="redText">logarithmic (dynamic)</span> options use a y-axis that scales (dynamically) based on current data. The standard <span class="redText">logarithmic</span> display always shows the full range to 400 mg/Dl (22 mmol/L). <h2>Toggling Scale</h2> You can change the scale of your graph by clicking the settings panel icon (hamburger) in the top right of your screen and then choosing between logarithmic, linear, and logarithmic (dynamic). After making your selection, click "save" at the bottom. <a href="http://www.nightscout.info/wp-content/uploads/2015/11/toggle-scale.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/11/toggle-scale.png" alt="toggle-scale" width="272" height="538" class="wikiImage" /></a> <h2>Site Default</h2> The site default for scale is <span class="redText">linear</span>. You can change the default in your site settings (Azure or Heroku) by setting the <span class="redText">SCALE_Y</span> variable. Possible values: <span class="redText">linear</span>, <span class="redText">log</span>, and <span class="redText">log-dynamic</span>. <a href="http://www.nightscout.info/wp-content/uploads/2015/10/scale-setvariable.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/10/scale-setvariable.png" alt="scale-setvariable" width="483" height="40" class="wikiImage" /></a> (<strong>Note for Azure users</strong>: set this variable in App Settings.) <h2>Scale in Action</h2> The following screenshots show the same blood glucose data from a Nightscout site in all three scale views: <a href="http://www.nightscout.info/wp-content/uploads/2015/10/scale-logarithmic.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/10/scale-logarithmic.png" alt="scale-logarithmic" width="400" height="386" class="wikiImage" /></a> <a href="http://www.nightscout.info/wp-content/uploads/2015/10/scale-linear.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/10/scale-linear.png" alt="scale-linear" width="400" height="386" class="wikiImage" /></a> <a href="http://www.nightscout.info/wp-content/uploads/2015/10/scale-logarithmic-dynamic.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/10/scale-logarithmic-dynamic.png" alt="scale-logarithmic-dynamic" width="400" height="386" class="wikiImage" /></a> The following screenshots show a closer look at the scale change between logarithmic and linear when viewing blood glucose values and changes at lower ranges. <a href="http://www.nightscout.info/wp-content/uploads/2015/10/logarithmic-lowerrange.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/10/logarithmic-lowerrange.png" alt="logarithmic-lowerrange" width="400" height="191" class="wikiImage" /></a> <a href="http://www.nightscout.info/wp-content/uploads/2015/10/linear-lowerrange.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/10/linear-lowerrange.png" alt="linear-lowerrange" width="400" height="131" class="wikiImage" /></a> <h2>Readme Information</h2> Github readme information regarding the new scale settings is shown below: <a href="http://www.nightscout.info/wp-content/uploads/2015/10/scale-readme.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/10/scale-readme.png" alt="scale-readme" width="762" height="195" class="wikiImage" /></a>
Excerpt


OldNewDate CreatedAuthorActions
December 30, 2015 @ 11:56:09 [Autosave] Amy Cowen
November 1, 2015 @ 08:56:13 Amy Cowen
November 1, 2015 @ 08:55:27 Amy Cowen
November 1, 2015 @ 08:54:24 Amy Cowen
November 1, 2015 @ 08:53:50 Amy Cowen
October 31, 2015 @ 14:39:30 Amy Cowen
October 31, 2015 @ 14:39:04 Amy Cowen
October 31, 2015 @ 14:36:47 Amy Cowen
October 31, 2015 @ 14:23:13 Amy Cowen
October 31, 2015 @ 14:21:14 Amy Cowen
October 31, 2015 @ 14:19:06 Amy Cowen
October 31, 2015 @ 13:42:36 Amy Cowen
October 27, 2015 @ 02:02:09 Amy Cowen
October 24, 2015 @ 10:59:17 Amy Cowen
October 24, 2015 @ 10:56:48 Amy Cowen