mgr/dashboard: Improve position of MDS chart tooltip

The previous position was overlapping the data points.

Fixes: https://tracker.ceph.com/issues/42623

Signed-off-by: Tiago Melo <tmelo@suse.com>
This commit is contained in:
Tiago Melo 2019-11-04 15:08:57 -01:00
parent 7e4ef7f8ec
commit 534b202f40

View File

@ -124,7 +124,7 @@ export class CephfsChartComponent implements OnChanges, OnInit {
this.chartCanvas,
this.chartTooltip,
(tooltip) => tooltip.caretX + 'px',
(tooltip) => tooltip.caretY - tooltip.height - 15 + 'px'
(tooltip) => tooltip.caretY - tooltip.height - 23 + 'px'
);
chartTooltip.getTitle = (ts) => moment(ts, 'x').format('LTS');
chartTooltip.checkOffset = true;