|
|
@ -126,8 +126,7 @@ export class Markers { |
|
|
|
.html(marker.html); |
|
|
|
.html(marker.html); |
|
|
|
|
|
|
|
|
|
|
|
// align tooltip: center (we need it to be rendered first)
|
|
|
|
// 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}px`) |
|
|
|
div.style('left', `${linePosition + this._margin.left - div.node().getBoundingClientRect().width / 2 + 8}px`) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected renderSerie(serie: MarkerSerie) { |
|
|
|
protected renderSerie(serie: MarkerSerie) { |
|
|
|