When using the nearestPoint TrackballDisplayMode the pointIndex for the last column of data is returning the incorrect index
tooltipDisplayMode: TrackballDisplayMode.nearestPoint,
builder: (BuildContext context, TrackballDetails trackballDetails) {
return summaryBuilder(trackballDetails, context);
},
e.g. in this chart there is non-zero data for the first twenty days in the 31 collection, selecting the first column will supply pointIndex 0 as expected:
Selecting 19th column supplies pointIndex 18:
but selecting the 20th column supplies pointIndex 20:
Selecting 21st column supplies pointIndex 21 and so on
Hi David,
We have tried to reproduce the reported issue that is getting incorrect point index values in the trackball builder, but the issue is not reproduced at our end. We kindly request you share more information about the complete chart sample code snippet and data source used and also try to reproduce the reported issue in the shared sample below. It will be more helpful for to us assist you in a better way.
We have also shared the screenshot for your requirement.