Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions src/Chart.StackedBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,31 +358,6 @@
return this;
},
update : function(){

//Iterate through each of the datasets, and build this into a property of the chart
helpers.each(this.datasets,function(dataset,datasetIndex){

helpers.extend(this.datasets[datasetIndex], {
label : dataset.label || null,
fillColor : dataset.fillColor,
strokeColor : dataset.strokeColor,
});

helpers.each(dataset.data,function(dataPoint,index){
helpers.extend(this.datasets[datasetIndex].bars[index], {
value : dataPoint,
label : this.data.labels[index],
datasetLabel: dataset.label,
strokeColor : dataset.strokeColor,
fillColor : dataset.fillColor,
highlightFill : dataset.highlightFill || dataset.fillColor,
highlightStroke : dataset.highlightStroke || dataset.strokeColor
});
},this);

},this);


this.scale.update();
// Reset any highlight colours before updating.
helpers.each(this.activeElements, function(activeElement){
Expand Down