Fix performance degradation by always setting fill = 0.001 (#8868)

* add benchmark

* fix, prevent plotLineArea() call if fill == 0

* remove benchmark
This commit is contained in:
Mitsuhiro Tanda 2017-07-18 03:50:58 +09:00 committed by Torkel Ödegaard
parent c5f6cf0809
commit 32f9a42d5e

View File

@ -375,7 +375,11 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) {
}
function translateFillOption(fill) {
return fill === 0 ? 0.001 : fill/10;
if (panel.percentage && panel.stack) {
return fill === 0 ? 0.001 : fill/10;
} else {
return fill/10;
}
}
function shouldDelayDraw(panel) {