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
Hey guys! I have to first say, this is a GREAT and easy-to-use custom class. A job well done!
One issue I had with it though. When programmatically defining a JYGraphView, and throwing it into a ViewDidLoad, I didn't want to reallocate my instance every time to remove the previously drawn lines with the updated Graph Data. So I created this method inside of JYGraphView. I was going to make a pull request, but I found out this was a private repo. So, here's the code. Figured anyone else that ran into the same problem could use it too:
// Used to clear previously drawn sublayers, or lines, and replots graph
// Be sure to update your JYGraphView's graphData and graphDataLabels before calling this
Hey guys! I have to first say, this is a GREAT and easy-to-use custom class. A job well done!
One issue I had with it though. When programmatically defining a JYGraphView, and throwing it into a ViewDidLoad, I didn't want to reallocate my instance every time to remove the previously drawn lines with the updated Graph Data. So I created this method inside of JYGraphView. I was going to make a pull request, but I found out this was a private repo. So, here's the code. Figured anyone else that ran into the same problem could use it too:
// Used to clear previously drawn sublayers, or lines, and replots graph
// Be sure to update your JYGraphView's graphData and graphDataLabels before calling this
{
[[self layer] setSublayers: nil];
[self plotGraphData];
}
Feel free to add this to your repo for JYGraphView!
The text was updated successfully, but these errors were encountered: