react-native-chart-kit
react-native-chart-kit copied to clipboard
onDataPointClick not functional with react-native-web
I'm attempting to show a tooltip on click as per the various guides online. onDataPointClick doesn't seem to fire on web? Works fine for me on Android simulator.
<LineChart
...
onDataPointClick={(data) => {
console.log('Data point clicked');
}}
/>
Problem replicated here: https://snack.expo.dev/@warm__tape/react-native-chart-kit-test - you'll note that the data is logged to console when clicking on the android points, but not on the web points.