document.Calculate followed by RecalcLayout results in no data being drawn on a chart


document.Calculate followed by RecalcLayout results in no data...
Author
Message
Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K
I have just come across this issue when updating from 18.4.26.12 to 19.7.15.12.
Like the OP in https://www.nevron.com/Forum/12739/When-is-it-adviceable-to-call-NevronChart100ocumentCalculate-and-RecalcLayout I started getting numerous problems where no chart data was drawn in the newer version.

I also eventually tracked down that removing the Calculate resulted in the chart reappearing again.
I wasted considerable time tracking this down. It would have been good if some mention of this was made in release notes (or did I miss it?).

This is clearly a bug here that needs fixing.
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Kevin,
It is hard to tell why the chart did not function properly, but we're considering to remove the Calculate method now because it actually takes two passes to completely recalculate the control in order to take care of things like dynamic axis y range etc, axis synchronization and others. In addition, the new version adds optimizations for removing redundant range calculations some of which may be causing this behavior on your end. The recommended way to recalculate the control is through the RecalcLayout method now as it will completely reevaluate all display time properties. If you send us an example that replicates the problem we can be more specific about the cause...


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search