Fix #2102
Esse commit está contido em:
externo
+6
-5
@@ -977,9 +977,10 @@
|
||||
return this;
|
||||
},
|
||||
generateLegend : function(){
|
||||
return template(this.options.legendTemplate,this);
|
||||
return helpers.template(this.options.legendTemplate, {datasets: this.datasets});
|
||||
},
|
||||
destroy : function(){
|
||||
this.stop();
|
||||
this.clear();
|
||||
unbindEvents(this, this.events);
|
||||
var canvas = this.chart.canvas;
|
||||
@@ -2366,10 +2367,10 @@
|
||||
value : dataPoint,
|
||||
label : data.labels[index],
|
||||
datasetLabel: dataset.label,
|
||||
strokeColor : dataset.strokeColor,
|
||||
fillColor : dataset.fillColor,
|
||||
highlightFill : dataset.highlightFill || dataset.fillColor,
|
||||
highlightStroke : dataset.highlightStroke || dataset.strokeColor
|
||||
strokeColor : (typeof dataset.strokeColor != 'string') ? dataset.strokeColor[index] : dataset.strokeColor,
|
||||
fillColor : (typeof dataset.fillColor != 'string') ? dataset.fillColor[index] : dataset.fillColor,
|
||||
highlightFill : (dataset.highlightFill && typeof dataset.highlightFill != 'string') ? dataset.highlightFill[index] || dataset.highlightFill : (typeof dataset.fillColor != 'string') ? dataset.fillColor[index] : dataset.fillColor,
|
||||
highlightStroke : (dataset.highlightStroke && typeof dataset.highlightStroke != 'string') ? dataset.highlightStroke[index] || dataset.highlightStroke : (typeof dataset.strokeColor != 'string') ? dataset.strokeColor[index] : dataset.strokeColor
|
||||
}));
|
||||
},this);
|
||||
|
||||
|
||||
externo
+2
-2
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
+1
-1
@@ -977,7 +977,7 @@
|
||||
return this;
|
||||
},
|
||||
generateLegend : function(){
|
||||
return helpers.template(this.options.legendTemplate, {datasets: this.data.datasets});
|
||||
return helpers.template(this.options.legendTemplate, {datasets: this.datasets});
|
||||
},
|
||||
destroy : function(){
|
||||
this.stop();
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário