id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking
9476,dojox.charting.plot2d.Pie._getLabel() makes use of Number.toFixed() which is broken in IE,Jared Jurkiewicz,Eugene Lazutkin,"Reported from a co-worker of mine:
The function dojox.charting.plot2d.Pie._getLabel() uses Number.toFixed() to round and stringify the number that is displayed as label next to the pie element.
Number.toFixed() is broken in Internet Explorer for numbers between 0.5 and 0.95 - in this case it returns 0 instead of 1.
Therefore the following alert would show 0:
var a = 0.921;
var b = 0;
alert(a.toFixed(b));
A workaround is to round the number using Math.round(). This would return 1:
alert((Math.round(Math.pow(10, b) * a) / Math.pow(10, b)).toFixed(b));
",defect,closed,high,1.5,Charting,1.2.3,fixed,,deanw,,