Is anyone else getting Page object Datapoint should not be empty with Chart JS?

0
I'm showing a chart using Chart JS and showing a popup form when clicking on a datapoint. This works well as long as I click on a datapoint within 1 second (before the 1000 ms animation finishes). If I wait longer, it works about 1/3 of the time. This is on Chrome Version 61.0.3163.100 (Official Build) (64-bit) and Microsoft Edge 40.15063.0.0. The datapoint objects are committed to temporary entities in the microflow launched by Chart JS.   Edit: This page is showing two charts on separate pages of a tab control.  
asked
1 answers
0

I found a workaround for this. If I associate the chart entity with $currentSession and then set that association when creating the chart entity, the drilldown (by clicking on a datapoint) works every time.

My working theory is that the temporary entities used to support ChartJS are being garbage collected and that associating the chart entity to $currentSession prevents garbage collection of the chart entity and related entities.

answered