-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using tooltip.outside, tooltip gets misaligned #16944
Comments
Hi @rizzotto, thank you for reporting a bug!
Workaround: correct the position with this |
Hey @raf18seb thanks for answering, also the Y is misaligned. Do you have an ETA for this one? Thanks! |
We are preparing for the v10 release now, so no specific ETA for this bug, sorry. I'll put it into our development flow ( |
The connection to
Workaround positioner(labelWidth, labelHeight, point) {
const chartPosition = this.chart.pointer.getChartPosition();
return {
x: chartPosition.left + point.plotX + this.chart.plotLeft - labelWidth / 2,
y: chartPosition.top + this.chart.plotTop - 20,
}
}, |
Expected behavior
Tooltip should not get misaligned when using
outside: true
propertyActual behavior
Tooltip is not aligned properly when using the outside prop
Live demo with steps to reproduce
Check the demo example https://jsfiddle.net/rizzotto/urhkswtj/ and set the property
outside
totrue
The text was updated successfully, but these errors were encountered: