FormidableLabs / victory

A collection of composable React components for building interactive data visualizations
http://commerce.nearform.com/open-source/victory/
Other
10.96k stars 525 forks source link

VictoryTooltip overlap in VictoryGroup #2201

Open vluzhna opened 2 years ago

vluzhna commented 2 years ago

The Problem / Bug

VictoryTooltip is overlapping in a VictoryGroup of VictoryBar with a vertical position on IOS.

Reason

I managed to understand that the problem is related to how the charts are drawn. Considering the input data array and the structure of drawing charts in a group, the Chart is drawn in turn. First from the first block of data, then the second, the third... This creates layering in the SVG image.

Each BarChart has his VictoryTooltip. Accordingly, in an active state of VictoryTooltip for BarChart, it is located on the same layer as the related Chart. That is, the first rendered VictoryBar and its VictoryTooltip will be overlaid by subsequent charts on IOS, unlike the web version.

I saw that this problem was already opened in 2018, 2019.., but was closed without solving it.


Request

Please could you please take a look into this issue? And maybe suggest to me how to fix it for time.

Example in Sandboxs

BarChartInGroup-web1 BarChartInGroup-web2

BarChartInGroup-ios1 BarChartInGroup-ios2 BarChartInGroup-ios3

vluzhna commented 2 years ago

@becca-bailey do you know if a fix for this issue will be considered?

gleandroj commented 1 year ago

@becca-bailey do you have any updates over this issue?

radekzz commented 1 year ago

Same problem here, using v36.6.8 on RN and renderInPortal doesn't help, it just convert tooltip on click to static tooltip always visible, constrainToVisibleArea also not helpful.

Actually my problem is, that xAxis labels are overlapping tooltip Snímek obrazovky 2023-03-07 v 15 41 56