Closed murtinha closed 1 month ago
This customization aspect needs some improvement. Does the solution in #11484 (the example in the issue description ) solves your issue? It fixes the tooltip at the bottom but same can be done to the top I assume
I have tried that solution @alexfauquette but it doesnt seem to change anything... the tooltip change its placement but its still anchored to my mouse position and movement. I have tried some different placements
slotProps={{
popper: {
placement: "auto-start"
}
}}
I ended up migrating to recharts :/
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
[!NOTE] We value your feedback @murtinha! How was your experience with our support team? If you could spare a moment, we'd love to hear your thoughts in this brief Support Satisfaction survey. Your insights help us improve!
The problem in depth
So Im using BarChart component and I need to have the tooltip fixed at the top of the bar when I hover over the axis instead of its position getting changed depending on my mouse. I also need the tooltip not to disappear when hovering over it and not the axis because I am gonna have a clickable text inside it.
I am also overriding the default axisContent tooltip body
Here is my BarChart component
Your environment
`npx @mui/envinfo`
``` Using Chrome System: OS: macOS 14.1.2 Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node npm: 10.8.2 - ~/.nvm/versions/node/v18.17.1/bin/npm pnpm: Not Found Browsers: Chrome: 127.0.6533.120 Edge: Not Found Safari: 17.1.2 npmPackages: @emotion/react: 11.10.6 @emotion/styled: 11.10.6 @mui/base: 5.0.0-alpha.123 @mui/core-downloads-tracker: 5.11.15 @mui/icons-material: 5.11.11 @mui/lab: 5.0.0-alpha.136 @mui/material: 5.11.15 @mui/private-theming: 5.13.7 @mui/styled-engine: 5.13.2 @mui/system: 5.14.0 @mui/types: 7.2.14 @mui/utils: 5.15.20 @mui/x-charts-vendor: 7.12.1 @mui/x-data-grid: 6.20.1 @mui/x-data-grid-pro: 6.20.1 @mui/x-date-pickers: 6.20.1 @mui/x-license: 7.7.0 @mui/x-license-pro: 6.10.2 @types/react: 18.2.21 react: 18.2.0 react-dom: 18.2.0 typescript: 4.9.5 ```Search keywords: barchart tooltip Order ID: 74069