-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Issue with tooltip: mode 'index' #8301
Comments
edit: nvm, it only works correctly in v3. |
@kurkle , Is there any way to achieve this scenario in version 2.9.4? mode: 'nearest', axis: 'x', intersect: false this is not working with 2.9.4 --> It display only 1line's tooltip not both line's |
Not sure. |
mode: 'x' is giving more than 1 tooltipItem for each line, but I need only 1 for 1 line. so mode: x is also not workaround for me.... |
That is probably the same issue as #8293, You can try to make sure both data arrays have the same x labels specified but have null values for the parts you dont want to show, should also work with mode index |
@LeeLenaleee , You can try to make sure both data arrays have the same x labels specified but have null values for the parts you dont want to show, should also work with mode index ---- This is very time taking in my case as there is alot of data |
You can try it with a small dataset and if it works you script it for the big one. |
Hey Guys, I did 1 work around, I set, to get only 1 tooltipItem for each line, I customized tooltip.body.
Hope It will help someone. I am closing this bug as It is already created. as per above message of @LeeLenaleee. |
Please check this code pen :- https://codepen.io/bhavin00-the-reactor/pen/abZqXWz
I used tooltip mode index. as I want only 1 tooltip item for each line, there is two line so I need 2 tooltip items (1 for each line).
When I used mode: index then It is displaying only 1 tooltip item for 1 line, but then there is issue with tooltip location some time..
I attached below image please check & help me to resolve this...
In above image, I am hovering before 3rd Jan place but tooltip is coming for 6th Jan...
Is there any other alternative right now. as It looks issue with mode: index
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce
Context
Environment
The text was updated successfully, but these errors were encountered: