Issue #554 resolved

100% CPU usage with stacked bar renderer having only one point

Tomasz Nurkiewicz
created an issue

The following bar chart with date X-axis renders fine: {{{ var chartData = [ [ [new Date(2012, 3, 19), 1], [new Date(2012, 3, 20), 2] ], [ [new Date(2012, 3, 19), 2], [new Date(2012, 3, 20), 3] ] ];

$.jqplot("chart", chartData, { stackSeries: true, seriesDefaults: { renderer: $.jqplot.BarRenderer }, axes: { xaxis: { renderer: $.jqplot.DateAxisRenderer } } }); }}}

However removing the second bar causes the script to use 100% CPU and eventually browser kills it:

{{{ var chartData = [ [ [new Date(2012, 3, 20), 2] ], [ [new Date(2012, 3, 20), 3] ] ]; }}}

I am using jqPlot 1.0.0b2_r1012 with the following plugins:

{{{ <script src="jquery.jqplot.js"></script> <script src="jqplot.dateAxisRenderer.js"></script> <script src="jqplot.categoryAxisRenderer.js"></script> <script src="jqplot.barRenderer.js"></script> }}}

Comments (1)

  1. Log in to comment