Fix error in generateLegend() function

This commit is contained in:
Ema Panz 2015-07-25 17:32:58 +02:00
parent 43f19359a9
commit d7ee18372a

View File

@ -967,7 +967,7 @@
return this; return this;
}, },
generateLegend : function(){ generateLegend : function(){
return template(this.options.legendTemplate,this); return helpers.template(this.options.legendTemplate, {datasets: this.data.datasets});
}, },
destroy : function(){ destroy : function(){
this.clear(); this.clear();