Skip to content
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

[charts] line chart tooltip hover issue #15268

Open
MainaMwangiy opened this issue Nov 5, 2024 · 2 comments
Open

[charts] line chart tooltip hover issue #15268

MainaMwangiy opened this issue Nov 5, 2024 · 2 comments
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@MainaMwangiy
Copy link

MainaMwangiy commented Nov 5, 2024

Steps to reproduce

Link to live example: (required)

Steps: Check this link: https://stackblitz.com/edit/react-udtkt5-beatyw?file=Demo.js

Current behavior

With some dates, it is having only one date visible on hover.

Expected behavior

Should be able to hover on different dates and see the value on the tooltip.

Context

I want to ensure that when I hover on a single date point, I get the specific date of that point. The solution given for this issue not working on some conditions. Please refer this issue. #13615

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: line chart hover tooltip

@MainaMwangiy MainaMwangiy added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 5, 2024
@github-actions github-actions bot added the component: charts This is the name of the generic UI component, not the React module! label Nov 5, 2024
@JCQuintas
Copy link
Member

Hi @MainaMwangiy, can you show an example of what you are trying to achieve? It seems you want a vertical line chart, which is not really supported at the moment.

@JCQuintas JCQuintas added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 6, 2024
@alexfauquette
Copy link
Member

To be precise the issue you see is that to map the pointer position to a x-value, we assume that points along the x-axis are sorted by increasing order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants