swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.29k stars 1.15k forks source link

tooltip position on PieChart Doughnut #1483

Open zecka opened 4 years ago

zecka commented 4 years ago

Describe the bug The tooltip position is strange on PieChart (doughnut) with custom tooltip template

To Reproduce Check demo link

Expected behavior Move tooltip near color active area.

Screenshots tooltip-position

Demo https://stackblitz.com/edit/pie-char-doughnut-strange-position

ngx-charts version ^10.1.0

Additional context Add any other context about the problem here.

ezeqduarte commented 9 months ago

I have the same issue when the doughnut option is active. When clicking on a color in the chart, the tooltip takes the position of the square that encloses the SVG, not the position of the drawn chart. This creates a misaligned view that is not expected.