From: Nick Downie Date: Mon, 25 Mar 2013 19:50:18 +0000 (+0000) Subject: There are too many versions of Chart.js X-Git-Tag: v0.2.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75f4d21968c53cf6ebae0607f7fb2949d28ca356;p=thirdparty%2FChart.js.git There are too many versions of Chart.js --- diff --git a/Chart.min.js b/Chart.min.js index e4de2a1cd..36ffd06d9 100644 --- a/Chart.min.js +++ b/Chart.min.js @@ -22,14 +22,14 @@ h*f,!1),b.lineTo(q/2,u/2),b.closePath(),b.fillStyle=a[d].color,b.fill(),c.segmen {value:(c.scaleStartValue+c.scaleStepWidth*k).toFixed(A(c.scaleStepWidth))}))}else j=D(k,g,h,d,l,e);m=f/j.steps;x(c,function(){var d=2*Math.PI/a.datasets[0].data.length;b.save();b.translate(q/2,u/2);if(c.angleShowLineOut){b.strokeStyle=c.angleLineColor;b.lineWidth=c.angleLineWidth;for(var e=0;eMath.PI?"right":"left";b.textBaseline="middle";b.fillText(a.labels[e],g,-h)}b.restore()},function(d){var e= -2*Math.PI/a.datasets[0].data.length;b.save();b.translate(q/2,u/2);b.rotate(e);for(var f=0;ft?d:t;q/a.labels.lengthd&&(d=a.datasets[g].data[h]),a.datasets[g].data[h]e?l:e;e+=10}r=q-e-t;k=Math.floor(r/(a.labels.length-1));n=q-t/2-r;p=f+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0t?d:t;q/a.labels.lengthd&&(d=a.datasets[g].data[h]),a.datasets[g].data[h]e?l:e;e+=10}r=q-e-t;k=Math.floor(r/(a.labels.length-1));n=q-t/2-r;p=f+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0t?d:t;q/a.labels.lengthd&&(d=a.datasets[g].data[h]),a.datasets[g].data[h] maxSteps) { if (numberOfSteps < minSteps){ stepValue /= 2; @@ -1311,11 +1325,12 @@ var Chart = function(context){ } }; - //Compare number of steps to the max and min for that size graph, and add in half steps if need be. + //Create an array of all the labels by interpolating the string. var labels = []; + if(labelTemplateString){ //Fix floating point errors by setting to fixed the on the same decimal as the stepValue. for (var i=1; i