Tooltip issue #341
Send to my agentTooltip is not anchored to the chart plot

https://codesandbox.io/s/react-charts-sample-9lodo4?file=/src/App.tsx
I forked the demo project, this onw works.
any idea why its not working on a new project?
https://codesandbox.io/s/elastic-ritchie-y4j9ml

@mbogdan0 npm i @3.0.0-beta.30 seems to fix the issue.
Experiencing this on
react-charts@3.0.0-beta.54version as well on line graphs and it looks like the example is also having this problem only on line graphs and not on the bars Screencast from 10-04-23 17:02:49.webmThe problem seems to be with radius of circle on focused element. Occasionally tooltip is in correct position but usual bounding rect size is 0. The reason is that radius of focused element seems to be 0. It is set in this line
My guess is that focusedDatum is not always in sync and causes the problem. Not sure how to fix it though
If focused datum check is removed from radius calculation tooltip will be shown correctly:
const radius = showDatumElements === 'onFocus' ? 4 : 2It shouldn't affect elsewhere because it is not shown because of next check
const show = showDatumElements === 'onFocus' ? datum === focusedDatum : secondaryAxis.showDatumElements ?? secondaryAxis.elementType === 'bubble'But I can't say it for sure if there would be some side-effects to make a pull request with given "fix"
This is fixed in the latest release of beta
tannerlinsley closed this
I am on
3.0.0-beta.55and I still have this issue with linecharts.same issue here, anyone knows how to disable the animation of the tooltip?
Sign in to join this conversation.
Any updates on this? I have the same issue.