Compare commits

..

No commits in common. '0c3b4041550843cae80926dd815095111f460040' and '701feaaf2ff3038feb4254fc696657d5201b6741' have entirely different histories.

  1. 2
      package.json
  2. 3
      src/components/markers.ts

2
package.json

@ -1,6 +1,6 @@
{
"name": "@chartwerk/line-pod",
"version": "0.7.3",
"version": "0.7.2",
"description": "Chartwerk line chart",
"main": "dist/index.js",
"files": [

3
src/components/markers.ts

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

Loading…
Cancel
Save