You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.
A workaround hack: If I change line 157 in BEMLine.m from this: if (!self.disableMainLine && self.bezierCurveIsEnabled) {
to this: if (!self.disableMainLine && self.bezierCurveIsEnabled && self.points.count && self.bottomPointsArray.count && self.topPointsArray.count) {
it works OK.
This points to an apparent problem with my data array being empty, I think, although that shouldn't be the case. Is there some better way to avoid having BEMLine trying to draw with an empty data set?
I really appreciate using BEMSimpleLineGraph. Thanks for any help.
The text was updated successfully, but these errors were encountered:
thanks @carleihar - yes same for me if array only contains null values and then my code returns BEMNullGraphValue in the - (CGFloat)lineGraph:(BEMSimpleLineGraphView *)graph valueForPointAtIndex:(NSInteger)index method. I'm adding a zero value to the beginning of all of my data arrays to get around this for now. Have you found any other solution?
@sjmn Right now I am checking to see if my points array is empty, and if it is just removing the graph from the superview. Definitely not a pretty solution but it works.
A workaround hack: If I change line 157 in BEMLine.m from this:
if (!self.disableMainLine && self.bezierCurveIsEnabled) {
to this:
if (!self.disableMainLine && self.bezierCurveIsEnabled && self.points.count && self.bottomPointsArray.count && self.topPointsArray.count) {
it works OK.
This points to an apparent problem with my data array being empty, I think, although that shouldn't be the case. Is there some better way to avoid having BEMLine trying to draw with an empty data set?
I really appreciate using BEMSimpleLineGraph. Thanks for any help.
The text was updated successfully, but these errors were encountered: