diff --git a/client/lib/flotr2.js b/client/lib/flotr2.js index 16f5c3553d..fecb2043e5 100644 --- a/client/lib/flotr2.js +++ b/client/lib/flotr2.js @@ -5174,10 +5174,10 @@ Flotr.addPlugin('hit', { } } if (n.mouse.autoPositionVertical) { - if (n.yaxis.d2p(n.y) > this.plotHeight * 2 / 3) { - p = 'n'; - } else { + if (this.plotHeight - n.yaxis.d2p(n.y) > this.plotHeight * 3 / 4) { p = 's'; + } else { + p = 'n'; } } // EspoCRM fix end diff --git a/client/modules/crm/src/views/dashlets/sales-by-month.js b/client/modules/crm/src/views/dashlets/sales-by-month.js index a1192f673b..b105064794 100644 --- a/client/modules/crm/src/views/dashlets/sales-by-month.js +++ b/client/modules/crm/src/views/dashlets/sales-by-month.js @@ -165,6 +165,7 @@ Espo.define('crm:views/dashlets/sales-by-month', 'crm:views/dashlets/abstract/ch relative: true, lineColor: this.hoverColor, position: 's', + autoPositionVertical: true, trackFormatter: function (obj) { var i = parseInt(obj.x); var value = '';