react-native-charts-wrapper
react-native-charts-wrapper copied to clipboard
Can we add highlight position to onSelect callback?
Marker views is not very customizable now. Best what we do is using our own React Native view and show it in onSelect() callback. But the problem is we don't know position of highlighted chart point. So what about adding this information to onSelect event? It should be not very hard because we already has this information in chartValueSelected handler.
If I'm not wrong xPx and yPx in Highlight class.
any approach regarding this?
From Docs
onSelect
Triggered when a chart value is selected. The event passed back will include the coordinates of the touch as well as the data (including marker label) selected.
But the data i get from onSelect is
{
data: {
y: [1, 7, 0],
},
target: 4303,
x: 1,
yValues: [1, 7, 0]
}
May I know where to get the "coordinates f the touch" and "including marker label"?
Did anyone ever make any progress on this?