FormidableLabs / FormidableLabs/victory
VictoryVoronoiContainer with VictoryBar inside VictoryGroup gives inconsistent grouping in tooltip depending on bar values
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 536
- PR merge metrics
- No merged PRs in 30d
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
### Victory version
36.6.8
### Code Sandbox link
https://codesandbox.io/p/sandbox/victory-starter-forked-xczy4h?file=%2Fsrc%2FApp.tsx
### Bug report
I've been trying to workaround this but to no avail so I'm reaching out for an improvement request or help.
```markdown
My end goal is to have consistent tooltip on grouped bar graph like below:
Surely a new boolean prop to dictate the tooltip grouping behavior could resolve this.
```

### Steps to reproduce
```markdown
Check the sandbox.
Hover over the various bars.
Having VictoryBar inside VictoryGroup.
Some bars with the same value within a group
Some bars with all distinct values within a group.
The tooltip behavior is inconsistent.
```
### Expected behavior
```markdown
When hovering over a group of bar, having a consistent grouping behavior.
Maybe always show a single tooltip even if repeated values are found.
Like this we can build up our own grouped tooltip with the commented code in my sandbox or keep the behavior of a single bar per tooltip.
```
### Actual behavior
```markdown
When bars in a group have the same value, they get grouped in the same tooltip.
When a bar value is unique in the group, it prints a single element tooltip.
This cause inconsistent behavior that's impossible to customize.
```




### Environment
```markdown
It's a nice sunny spring day outside, 49°F
```
Contributor guide
Assessment
This issue has not been assessed yet.