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) {