-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[bug] incorrect payload for tooltip #2885
Comments
struggled with the same problem. I assume you are using multiple datasets/series that you are plotting in the same graph? Try this: ...
<XAxis
...
allowDuplicatedCategory={false}
...
/> For reference: codesandbox |
Idk why, idk how but works for me. |
The original codesandbox is no longer linking to the correct code but using the second example works. The axis type is number so |
I'm also seeing this issue. I have my XAxis set to As you can see, one of the items should be Here is my data:
|
After some seeing that I can pass data to the Line itself, I was able to get around this issue by no longer setting the data on the LineGraph component, but by setting the data upfront on each Line.
and in my JSX:
|
Reproduction link
Steps to reproduce
What is expected?
The tooltip says:
Failed: 954
Incubating: 6526.333333333333
What is actually happening?
The tooltip says:
Failed: 6526.333333333333
Incubating: 6526.333333333333
6526.333333333333 does not exist in the "Failed" dataset, so it should not be possible for Recharts to specify it in the payload for it. Hoveringon the left side works as expected.
The text was updated successfully, but these errors were encountered: