From 85cd952b9f61375a9b995b61a07c627483e54023 Mon Sep 17 00:00:00 2001 From: rozetko Date: Mon, 22 Jul 2024 19:14:13 +0300 Subject: [PATCH] hotfix --- src/components/markers.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/markers.ts b/src/components/markers.ts index 0a79ace..2dfa2d1 100644 --- a/src/components/markers.ts +++ b/src/components/markers.ts @@ -126,8 +126,7 @@ export class Markers { .html(marker.html); // align tooltip: center (we need it to be rendered first) - // PS: 8px is the empiric constant to center the div ideally - div.style('left', `${linePosition + this._margin.left - div.node().getBoundingClientRect().width / 2 + 8}px`) + div.style('left', `${linePosition + this._margin.left - div.node().getBoundingClientRect().width / 2}px`) } protected renderSerie(serie: MarkerSerie) {