Boris-Em / BEMSimpleLineGraph

Elegant Line Graphs for iOS. (Charting library)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graph not showing values for large data set

Venkata-Maniteja opened this issue · comments

When I load the graph with 1800 values , The graph loads properly but when I swipe the graph, the graph shows the values upto some instant, and after the point the graph is not showing any values.

simulator screen shot nov 13 2016 2 19 36 pm
simulator screen shot nov 13 2016 2 19 38 pm
simulator screen shot nov 13 2016 2 19 40 pm
simulator screen shot nov 13 2016 2 19 42 pm
simulator screen shot nov 13 2016 2 19 43 pm
simulator screen shot nov 13 2016 2 19 44 pm

As you can see, the graph is not showing the values after 7466 even though I swipe the graph to the very end.

When I debug, the last index the graph is able to show is 899, but my array has 1825 values.

Please see issues #109 and #272. Although the strategy the graph uses to draw points by using tags is likely not efficient or reliable, it also limits the graph to 900 points.

Is there any reason you need 1825 data points? Or can you reformat your data structure to use fewer? I'm curious what type of information you're displaying that requires so many points to be displayed to the user at the same time.

EDIT: Marked as duplicate of #272.

Got it! The feature branch fixes this issue and more. It will likely be merged into master today.