From: dima117 Date: Tue, 31 Mar 2015 19:06:41 +0000 (+0300) Subject: helpers.generateLabels throws "labelTemplateString is not defined" exception #1035 X-Git-Tag: v2.0-alpha~48^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1036%2Fhead;p=thirdparty%2FChart.js.git helpers.generateLabels throws "labelTemplateString is not defined" exception #1035 --- diff --git a/src/Chart.Core.js b/src/Chart.Core.js index e97693c2d..296844ea2 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -522,7 +522,7 @@ /* 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)))}); });