问题
I'm trying to figure out how to calculate which data indices (along x axis) are in range after panning/zooming the chart.
For example, when I zoom in on my linechart, I want to be able to update a tableview to only show the details for the data points that are visible.
I've searched the code and documentation i can find, to no avail.
回答1:
There is highestVisibleXIndex
and lowestVisibleXIndex
should help you. I hope I would see your issue earlier, just another weekend not on SO
来源:https://stackoverflow.com/questions/32787680/ios-charts-visible-data-in-linechartview