Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ul> <li><p>As Paweł Fus pointed out in the comment, the data is not well prepared for highcharts.</p> <p>So I have converted it from basic line chart to <strong>Scatter plot with line</strong>.</p> <p>Scatter plot with line<br> <a href="http://jsfiddle.net/S8wzF/1/" rel="nofollow">http://jsfiddle.net/S8wzF/1/</a> OR <a href="http://jsfiddle.net/S8wzF/2/" rel="nofollow">http://jsfiddle.net/S8wzF/2/</a></p> <p>Reference:<br> <a href="http://www.highcharts.com/demo/scatter" rel="nofollow">http://www.highcharts.com/demo/scatter</a><br> <a href="http://www.highcharts.com/demo/combo-regression" rel="nofollow">http://www.highcharts.com/demo/combo-regression</a></p></li> </ul> <hr> <ul> <li><p>Original fiddle with highcharts usage issues</p> <ul> <li><p>Add <a href="http://api.highcharts.com/highcharts#tooltip.useHTML" rel="nofollow"><code>useHTML</code></a> for tooltip when HTML formatting is in use.</p></li> <li><p><a href="http://api.highcharts.com/highcharts#tooltip.shared" rel="nofollow"><code>shared</code></a> is not needed and thus return statement of formatter is modified accordingly.</p> <pre><code>tooltip: { useHTML: true, formatter: function () { return '&lt;b&gt;' + this.x + '&lt;/b&gt;&lt;br/&gt;' + 'fruit_id' + ': ' + this.point.fruit_id + '&lt;br/&gt;' + 'Values' + ': ' + this.point.y + '&lt;br/&gt;' + 'Mean' + ': ' + this.point.mean + '&lt;br/&gt;' + 'Median' + ': ' + this.point.median + '&lt;br/&gt;' + 'Min' + ': ' + this.point.min + '&lt;br/&gt;' + 'Max' + ': ' + this.point.max + '&lt;br/&gt;' } } </code></pre></li> </ul></li> </ul> <hr> <ul> <li><p>Original code contains Javascript problems (Unrelated to highcharts)</p> <p>The series add data incorrectly as it is inside the loop.</p> <p>Put this segment of code <strong>outside</strong> "for loop".</p> <pre><code>series.push({ data: data, type: 'line', color: '#000', marker: { symbol: 'circle' }, showInLegend: false }); </code></pre></li> </ul>
    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.
    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