Commit 32f9a42d by Mitsuhiro Tanda Committed by Torkel Ödegaard

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

* add benchmark

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

* remove benchmark
parent c5f6cf08
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment