My objective is to be able to dynamically change the data displayed in the scatter plot chart.
To keep it simple, consider a data structure that has one X value, and two possible Y values (YValue1 and YValue2).
I start by setting the plot to XName=X and YName=YValue1
This plots just fine.
Then I click a button that changes the value of YName=YValue2
The plot updates to show the YValue2 values instead of the YValue1
The plot flickers but doesn't update the displayed points. The Y1 values are still showing
I even added a debug button to write the value of YName to the Console and it correctly reflects the change to YValue2 after the button is pressed. Even calling the Chart.refresh method doesn't fix the issue. This shows that the display has a bug.
I reproduced the issue based on your sample code on this page: