mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Draw controllers in reverse (for proper line stacking)
This commit is contained in:
parent
6065e8c801
commit
a5e4b38252
5
Chart.js
vendored
5
Chart.js
vendored
@ -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
2
Chart.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user