mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
Fix error in generateLegend() function
This commit is contained in:
parent
43f19359a9
commit
d7ee18372a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user