mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 08:24:05 +01:00
Merge pull request #1334 from thePanz/patch-2
Fix error in generateLegend() function
This commit is contained in:
@@ -977,7 +977,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();
|
||||
|
||||
Reference in New Issue
Block a user