I upgraded to the newest NucliOS Framework 2015 Vol 2 from NucliOS Framework 2014 Vol 1. I am now noticing that my implementations of IGChart are no longer displaying data on their first load. If I attempted to reload the chart it would then displayed. I tested with the same codebase, but with different framework versions implemented.
After some debugging, I discovered that viewForMarkerInSeries delegate was not being called in the 2015 version, on the first load. Using the view hierarchy debugger in Xcode, I can see that all of the appriate chart views have been added, however because that delegate was not called, nothing seems to be rendering. My question is what triggers this delegate? Did something change when this delegate is triggered from within NucliOS for the new 2015 framework version?
Hi Brett,
Glad that you found a workaround for this issue. It's very odd that the -viewForMarker delegate method would prevent your data from showing up. That method only handles point markers and doesn't interfere with rendering of the series itself. Could you share how you're setting up your chart view? I'm attaching a small sample, where both series and markers render right away during load without the need to invalidate. It may not be the way you're setting it up, but maybe it'll be a good starting point in figuring out the problem.
Turns out I needed to trigger the view to layout, by calling layoutIfNeeded. Not sure why the 2014 version didn't need this, but the one line of code fix was simple enough, even if it was tricky to track down.