Compare commits

..

2 Commits

Author SHA1 Message Date
rozetko 0c3b404155 0.7.3 4 months ago
rozetko 85cd952b9f hotfix 4 months ago
  1. 2
      package.json
  2. 3
      src/components/markers.ts

2
package.json

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

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

Loading…
Cancel
Save