From d7ee18372a0dbd857691725de8523baa8fc128e5 Mon Sep 17 00:00:00 2001 From: Ema Panz Date: Sat, 25 Jul 2015 17:32:58 +0200 Subject: [PATCH] Fix error in generateLegend() function --- src/Chart.Core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 44db42dfc..53d515fb8 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -967,7 +967,7 @@ return this; }, generateLegend : function(){ - return template(this.options.legendTemplate,this); + return helpers.template(this.options.legendTemplate, {datasets: this.data.datasets}); }, destroy : function(){ this.clear(); -- 2.47.2