Note that there are some explanatory texts on larger screens.

plurals
  1. POLogarithmic Axis issue with HighCharts
    primarykey
    data
    text
    <p>We are comparing multiple series using logarithmic scale. Most of the time the chart looks fine and scales correctly to min/max of the data. In the example below the top series is cut off. The only thing that changes is the data. If we change the time period to any of the other options, it will re-scale correctly, going back to 1Y has the same problem. Is there a way to resolve this issue?</p> <p>The second question I have is about the logic of the grid lines/labels when in log scale. Shouldn't by default the steps be based on Log(10) for example [0.10%, 1%, 10%, 100%, 1000%]? Is there a config option to set this? In the example below the default [0.10, 0.20, 0.40, 1.00] doesn't make much sense.</p> <p><strong>This is what the labels/ticks should always look like:</strong> jsfiddle.net/TeTMw/1</p> <p><img src="https://i.stack.imgur.com/uYcUX.png" alt="Log scale issue"></p> <p><strong>EDIT:</strong></p> <p>Here is the highcharts code that looks like is causing this bug. Would be great if you could help fix this issue.</p> <pre><code>// Second case: We need intermediary ticks. For example // 1, 2, 4, 6, 8, 10, 20, 40 etc. } else if (interval &gt;= 0.08) { var roundedMin = mathFloor(min), intermediate, i, j, len, pos, lastPos, break2; if (interval &gt; 0.3) { intermediate = [1, 2, 4]; } else if (interval &gt; 0.15) { // 0.2 equals five minor ticks per 1, 10, 100 etc intermediate = [1, 2, 4, 6, 8]; } else { // 0.1 equals ten minor ticks per 1, 10, 100 etc intermediate = [1, 2, 3, 4, 5, 6, 7, 8, 9]; } for (i = roundedMin; i &lt; max + 1 &amp;&amp; !break2; i++) { len = intermediate.length; for (j = 0; j &lt; len &amp;&amp; !break2; j++) { pos = log2lin(lin2log(i) * intermediate[j]); if (pos &gt; min &amp;&amp; lastPos &lt;= max) { positions.push(lastPos); } if (lastPos &gt; max) { break2 = true; } lastPos = pos; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload