ios-charts visible data in LineChartView

笑着哭i 提交于 2021-01-28 19:33:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!