Draw controllers in reverse (for proper line stacking)

This commit is contained in:
Tanner Linsley 2015-06-16 11:37:07 -06:00
parent 6065e8c801
commit a5e4b38252
3 changed files with 5 additions and 7 deletions

5
Chart.js vendored
View File

@ -1405,11 +1405,10 @@
this.scale.draw();
}
// Draw each dataset via its respective controller
// TODO: needs support for reverse stacking (line chart)
// Draw each dataset via its respective controller (reversed to support proper line stacking)
helpers.each(this.data.datasets, function(dataset, datasetIndex) {
dataset.controller.draw(ease);
}, this);
}, this, true);
// Finally draw the tooltip
this.tooltip.transition(easingDecimal).draw();

2
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -205,11 +205,10 @@
this.scale.draw();
}
// Draw each dataset via its respective controller
// TODO: needs support for reverse stacking (line chart)
// Draw each dataset via its respective controller (reversed to support proper line stacking)
helpers.each(this.data.datasets, function(dataset, datasetIndex) {
dataset.controller.draw(ease);
}, this);
}, this, true);
// Finally draw the tooltip
this.tooltip.transition(easingDecimal).draw();