Is it possible to disable events when im pressing on a chart? #77
-
First of all, thank you for your hard work. My question is, is it possible to disable the events that occur when I press on a chart? For example, I currently have a pie chart where, upon pressing on a section, a label appears with its corresponding value. However, when I drag my finger, it allows me to select other parts of the pie chart. The problem is that I have a tab system or scroll view, and when I press the pie chart and drag my finger, it enables scrolling or switches tabs. Can you assist me with this issue? Thanks in Advance. If you need a video to understand it better i can create one. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
it works if you know how to custom react-native-gesture-handler. a example here https://wuba.github.io/react-native-echarts/docs/expo-snacks/custom-gesture-use-rngh |
Beta Was this translation helpful? Give feedback.
-
In short, you can activate the relevant gesture after a certain delay of long press. defaultGestures[0].activateAfterLongPress(250); |
Beta Was this translation helpful? Give feedback.
-
If you don't need any envents at all, you can consider disabling it directly.
|
Beta Was this translation helpful? Give feedback.
it works if you know how to custom react-native-gesture-handler.
here is the document https://wuba.github.io/react-native-echarts/docs/advanced-guides/use-rngh#custom-gestures
a example here https://wuba.github.io/react-native-echarts/docs/expo-snacks/custom-gesture-use-rngh