BEMSimpleLineGraph
BEMSimpleLineGraph copied to clipboard
Wrong index in lineGraph:didTouchGraphWithClosestIndex: when more than 900 data points
When touching the graph on a point after 900 data points, it calls the delegate method with 899 as index, even if it should be a higher index.
I can confirm this - any solution yet?
This likely has something to do with the use of tags and the enum DotLastTag1000
. BEMSimpleLineGraph isn't really designed to display more than 1000 points. That being said, it is bad design to use tags. We should probably look into another way to enumerate and access the graph's data points. That would fix this issue and some design issues as well...
@Sam-Spencer, absolutely agree. Whether it is to fix this bug or not, tags are not a good idea.
@crvo84 @skuske Pull request #263 looks promising as a fix for this issue. I will report back here once the review is complete.
+1, I met too