gravity-ui / yagr

Yet another graph renderer
https://yagr.tech
MIT License
97 stars 7 forks source link

Error in calculating the position of tooltips synced graphs #195

Closed PavelMoore closed 9 months ago

PavelMoore commented 9 months ago

If synced graphs have ordinate values that differ by an order of magnitude or more, the tooltip of one of the graphs may "fly" outside of this graph. Probably, the position of the first tooltip is calculated directly from the position of the second tooltip, not relatively. I can't fix it with config.

Live example: https://codepen.io/Pavel_Moore/pen/OJqJWwE Screencast: https://disk.yandex.ru/i/pUo_qoaGdGplUA

zefirka commented 9 months ago

I guess the problem is in tooltip, which was updated to handle multiple behaviours, so we could brake something. I'll fix it

zefirka commented 9 months ago

Fixed in 4.0.4