]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
helpers.generateLabels throws "labelTemplateString is not defined" exception #1035 1036/head
authordima117 <dima117a@gmail.com>
Tue, 31 Mar 2015 19:06:41 +0000 (22:06 +0300)
committerdima117 <dima117a@gmail.com>
Tue, 31 Mar 2015 19:06:41 +0000 (22:06 +0300)
src/Chart.Core.js

index e97693c2d1b557b88ae6c0b1e5acae2712f0f28f..296844ea2ecc5f863ce894bd66d900ddb2ecc810 100755 (executable)
                /* jshint ignore:end */
                generateLabels = helpers.generateLabels = function(templateString,numberOfSteps,graphMin,stepValue){
                        var labelsArray = new Array(numberOfSteps);
-                       if (labelTemplateString){
+                       if (templateString){
                                each(labelsArray,function(val,index){
                                        labelsArray[index] = template(templateString,{value: (graphMin + (stepValue*(index+1)))});
                                });