react-native-chart-kit icon indicating copy to clipboard operation
react-native-chart-kit copied to clipboard

onDataPointClick not functional with react-native-web

Open warm--tape opened this issue 4 years ago • 0 comments

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.

warm--tape avatar Jan 20 '22 00:01 warm--tape